You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the filters argument supports {}List{}[{}Tuple{}] or {}List{}[{}List{}[{}Tuple{}]] or None as its input types. I was suprised to see that Expressions were not supported, considering that filters are converted to expressions internally when using use_legacy_dataset=False.
The check on L150-L153 short-circuits and succeeds when encountering an expression, but later fails on L2343 as the expression is evaluated as part of a boolean expression.
I think declaring filters using pa.compute.Expressions more pythonic and less error-prone, and ill-formed filters will be detected much earlier than when using list-of-tuple-of-string equivalents.
Currently, the filters argument supports
{}List{
}[{}Tuple{
}] or{}List{
}[{}List{
}[{}Tuple{
}]] or None as its input types. I was suprised to see that Expressions were not supported, considering that filters are converted to expressions internally when using use_legacy_dataset=False.The check on L150-L153 short-circuits and succeeds when encountering an expression, but later fails on L2343 as the expression is evaluated as part of a boolean expression.
I think declaring filters using pa.compute.Expressions more pythonic and less error-prone, and ill-formed filters will be detected much earlier than when using list-of-tuple-of-string equivalents.
Example:
Reporter: Patrik Kjærran
Assignee: Miles Granger / @milesgranger
PRs and other links:
Note: This issue was originally created as ARROW-17483. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: