Class ColumnNameReference

java.lang.Object
ai.rapids.cudf.ast.AstExpression
ai.rapids.cudf.ast.ColumnNameReference

public final class ColumnNameReference extends AstExpression
A reference to a column in an input table by name.

Unlike ColumnReference, which references a column by its integer position within the input table, this node carries the column name as a string. The name is resolved to an actual column when the AST is evaluated. This is useful in contexts where the column index is not known at AST-construction time, e.g. when the filter expression is built before the file's schema has been read. The Parquet hybrid scan reader relies on this node for filter expressions.

  • Constructor Details

    • ColumnNameReference

      public ColumnNameReference(String columnName)
      Construct a column reference using the column name.
      Parameters:
      columnName - the name of the column to reference. Must not be null or empty.
  • Method Details

    • getColumnName

      public String getColumnName()
      Returns:
      the column name
    • toString

      public String toString()
      Overrides:
      toString in class Object