milesgranger commented on code in PR #14011:
URL: https://github.com/apache/arrow/pull/14011#discussion_r962752544
##########
python/pyarrow/parquet/core.py:
##########
@@ -2338,9 +2340,10 @@ def __init__(self, path_or_paths, filesystem=None, *,
filters=None,
if decryption_properties is not None:
read_options.update(decryption_properties=decryption_properties)
- # map filters to Expressions
- self._filters = filters
- self._filter_expression = filters and _filters_to_expression(filters)
+ # map filters to Expressions if not already
+ if not isinstance(filters, ds.Expression):
Review Comment:
~If I understand correctly, `_filters_to_expression` doesn't accept
`Expression` type. So here, if it's already an `Expression` then no processing
is needed.~
Nvm, I was looking at the wrong function.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]