class Axiom::Optimizer::Algebra::Rename::RenameOperandAndEmptyAliases

Optimize when the operand is a Rename with aliases that cancel out

Public Instance Methods

optimizable?() click to toggle source

Test if the operand is a Rename with aliases that cancel out

@return [Boolean]

@api private

# File lib/axiom/optimizer/algebra/rename.rb, line 82
def optimizable?
  super && aliases.empty?
end
optimize() click to toggle source

A Rename wrapping a Rename with aliases that cancel out is a noop

@return [Relation]

@api private

# File lib/axiom/optimizer/algebra/rename.rb, line 91
def optimize
  operand.operand
end