class Arel::Nodes::Cte

def eql?(other)

def eql?(other)
  self.class == other.class &&
    self.name == other.name &&
    self.relation == other.relation &&
    self.materialized == other.materialized
end

def hash

def hash
  [name, relation, materialized].hash
end

def initialize(name, relation, materialized: nil)

def initialize(name, relation, materialized: nil)
  super(name, relation)
  @materialized = materialized
end

def to_cte

def to_cte
  self
end

def to_table

def to_table
  Arel::Table.new(name)
end