lib/veritas/optimizer/relation/materialized.rb in veritas-optimizer-0.0.5 vs lib/veritas/optimizer/relation/materialized.rb in veritas-optimizer-0.0.6
- old
+ new
@@ -23,10 +23,11 @@
#
# @return [Empty]
#
# @api private
def optimize
- Veritas::Relation::Empty.new(operation.header)
+ operation = self.operation
+ Veritas::Relation::Empty.new(operation.header, operation)
end
end # class EmptyOperand
Veritas::Relation::Materialized.optimizer = chain(