ray.data.expressions.StarExpr#
- class ray.data.expressions.StarExpr[source]#
Bases:
ExprExpression that represents all columns from the input.
This is a special expression used in projections to indicate that all existing columns should be preserved at this position in the output. It’s typically used internally by operations like with_column() and rename_columns() to maintain existing columns.
Example
When with_column(“new_col”, expr) is called, it creates: Project(exprs=[star(), expr.alias(“new_col”)])
This means: keep all existing columns, then add/overwrite “new_col”
DeveloperAPI: This API may change across minor Ray releases.
Methods
Rename the expression.
Check if the expression value is in a list of values.
Check if the expression value is not null.
Check if the expression value is null.
Check if the expression value is not in a list of values.
Convert this Ray Data expression to a PyArrow compute expression.
Attributes
Access datetime operations for this expression.
Access list operations for this expression.
Get the name associated with this expression.
Access string operations for this expression.
Access struct operations for this expression.