JingsongLi commented on code in PR #10336:
URL: https://github.com/apache/paimon/pull/10336#discussion_r4180319003
##########
paimon-python/pypaimon/read/read_builder.py:
##########
@@ -75,23 +86,32 @@ def with_partition_filter(self, partition_filter:
Predicate) -> 'ReadBuilder':
self._partition_filter = partition_filter
return self
- def with_projection(self, projection: List[str]) -> 'ReadBuilder':
- """Project to the given column names.
-
- Names containing a dot (e.g. ``"struct.subfield"``) walk into ROW
- children. A quoted bracket selector on a top-level
- ``MAP<STRING, ...>`` selects one literal key (e.g.
- ``"attrs['key.with.dots']"``). Unknown names are silently skipped to
- preserve the pre-existing contract.
+ def with_projection(
+ self,
+ projection: Union[List[str], Dict[str, str]],
Review Comment:
API Looks good to me.
--
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]