You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "djouallah (via GitHub)" <gi...@apache.org> on 2026/05/07 03:28:50 UTC

[I] support pyarrow recordbatch as a valid data source for writing Iceberg table [iceberg-python]

djouallah opened a new issue, #1004:
URL: https://github.com/apache/iceberg-python/issues/1004

   ### Feature Request / Improvement
   
   currently using this in a an environment with limited RAM
   
   ```
     df=final.arrow()
     catalog , table_location = connect_catalog(storage)
     catalog.create_table_if_not_exists(db+".scada",schema=df.schema,location= table_location+f'/{db}/scada' )
     catalog.load_table(db+".scada").append(df)
   ```
   
   I get sometimes  out of memory because arrow table needs to be fully materialized in memory,  I can generate recordbatch from my source system which will use less memory,  


-- 
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.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


Re: [I] support pyarrow recordbatch as a valid data source for writing Iceberg table [iceberg-python]

Posted by "djouallah (via GitHub)" <gi...@apache.org>.
djouallah closed issue #1004: support pyarrow recordbatch as a valid data source for writing Iceberg table 
URL: https://github.com/apache/iceberg-python/issues/1004


-- 
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


Re: [I] support pyarrow recordbatch as a valid data source for writing Iceberg table [iceberg-python]

Posted by "djouallah (via GitHub)" <gi...@apache.org>.
djouallah commented on issue #1004:
URL: https://github.com/apache/iceberg-python/issues/1004#issuecomment-2270625415

   Append operation cause OOM


-- 
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


Re: [I] support pyarrow recordbatch as a valid data source for writing Iceberg table [iceberg-python]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on issue #1004:
URL: https://github.com/apache/iceberg-python/issues/1004#issuecomment-2680363742

   @djouallah do you have the stack trace? Im curious which part of `append` is causing the OOM. 
   BTW there's an [`to_arrow_batch_reader()`](https://github.com/apache/iceberg-python/blob/71129ee3371830160f02c39f4bb01ccdff4e39d5/pyiceberg/table/__init__.py#L1765) API for getting arrow batch reader, which can be more memory efficient. 
   


-- 
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


Re: [I] support pyarrow recordbatch as a valid data source for writing Iceberg table [iceberg-python]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #1004:
URL: https://github.com/apache/iceberg-python/issues/1004#issuecomment-2629644003

   This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.


-- 
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


Re: [I] support pyarrow recordbatch as a valid data source for writing Iceberg table [iceberg-python]

Posted by "djouallah (via GitHub)" <gi...@apache.org>.
djouallah commented on issue #1004:
URL: https://github.com/apache/iceberg-python/issues/1004#issuecomment-2680407058

   > [@djouallah](https://github.com/djouallah) do you have the stack trace? Im curious which part of `append` is causing the OOM. BTW there's an [`to_arrow_batch_reader()`](https://github.com/apache/iceberg-python/blob/71129ee3371830160f02c39f4bb01ccdff4e39d5/pyiceberg/table/__init__.py#L1765) API for getting arrow batch reader, which can be more memory efficient.
   
   it is not a bug, when you do arrow(), all the data will be loaded into memory
   so either you add more ram, or make catalog.load_table accept recordbatch a valid input ( like delta_rs for example)


-- 
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


Re: [I] support pyarrow recordbatch as a valid data source for writing Iceberg table [iceberg-python]

Posted by "djouallah (via GitHub)" <gi...@apache.org>.
djouallah commented on issue #1004:
URL: https://github.com/apache/iceberg-python/issues/1004#issuecomment-2680180934

   any news :)


-- 
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


Re: [I] support pyarrow recordbatch as a valid data source for writing Iceberg table [iceberg-python]

Posted by "djouallah (via GitHub)" <gi...@apache.org>.
djouallah closed issue #1004: support pyarrow recordbatch as a valid data source for writing Iceberg table 
URL: https://github.com/apache/iceberg-python/issues/1004


-- 
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


Re: [I] support pyarrow recordbatch as a valid data source for writing Iceberg table [iceberg-python]

Posted by "kevinjqliu (via GitHub)" <gi...@apache.org>.
kevinjqliu commented on issue #1004:
URL: https://github.com/apache/iceberg-python/issues/1004#issuecomment-2682383747

   Looking at the above, the 2 critical parts are:
   ```
   df=final.arrow()
   ...
   tbl.append(df)
   ```
   
   Im surprised that the `.arrow()` part didn't cause the OOM but the `.append()` part did.
   
   > accept recordbatch a valid input ( like delta_rs for example)
   
   yep, we got one side of it already. `to_arrow_batch_reader()` produces record batches. We just need to check the write path for `.append()`
   
   Its kind of difficult to recreate a scenario where OOM happens. So if you have any other information or a way to reproduce, that'll be very helpful!


-- 
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


Re: [I] support pyarrow recordbatch as a valid data source for writing Iceberg table [iceberg-python]

Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko commented on issue #1004:
URL: https://github.com/apache/iceberg-python/issues/1004#issuecomment-2270597684

   @djouallah Thanks for raising this. To clarify, does the `final.arrow()` cause an OOM, or the `.append` operation?


-- 
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