You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "GayathriSrividya (via GitHub)" <gi...@apache.org> on 2026/06/08 08:13:17 UTC

Re: [PR] feat: add dictionary_columns to to_arrow() / to_arrow_batch_reader() for memory-efficient reads [iceberg-python]

GayathriSrividya commented on code in PR #3461:
URL: https://github.com/apache/iceberg-python/pull/3461#discussion_r3366905044


##########
pyiceberg/table/__init__.py:
##########
@@ -1245,6 +1246,14 @@ def scan(
                 An integer representing the number of rows to
                 return in the scan result. If None, fetches all
                 matching rows.
+            dictionary_columns:

Review Comment:
   Good point @Fokko I have moved `dictionary_columns` off the public `scan()` API and onto the Arrow-specific output methods instead:
   
   ```python
   table.scan(...).to_arrow(dictionary_columns=("payload",))
   table.scan(...).to_arrow_batch_reader(dictionary_columns=("payload",))
   ```
   
   That way it doesn't disturb the general scan interface. `ArrowScan` still accepts it for lower-level use. Pushed in the latest commit. Let me know if you have any further suggestions.



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org