[Data] supper passing pyarrow.dataset.Expression
s to Dataset.filter
's expr
#50799
Labels
enhancement
Request for new feature and/or capability
P1
Issue that should be fixed within a few weeks
Description
Currently, one may only pass a string representation of an
Expression
toDataset.map(expr...)
, but it would be nice to allow passing either a string or anExpression
.Use case
I want to programmatically generate a filter expression:
and I'd rather do this with the native pyarrow Expression API instead of string manipulation.
If I try
dataset.fiilter(expr=str(expr)
it raisesValueError: Invalid syntax in the expression
.The text was updated successfully, but these errors were encountered: