Direct ingest from Arrow tables #322
Replies: 3 comments 7 replies
-
As an optional feature it could be considered. Doing so in ODPI-C, however, would limit it to thick mode. Can you provide additional information on what you would like to see? Are you ingesting serialized Arrow tables? What would the input format look like? |
Beta Was this translation helpful? Give feedback.
-
Personally having to go thick mode route wouldn't be an issue on my end but I can see how others might not like that. Ideally, I'd like to be able to pass the whole table as bind (granted the SQL would match the columns in the arrow table, etc etc), something like
Not exactly, more producing Arrow data / working with it and just want to move that to Oracle (Pandas, Polars, DuckDB, etc very often offer zero-copy via Arrow so lots of ways to end up with data in Arrow format)
I would imagine a "flat" Arrow table, it gets messy with nested types but maybe they can just not be supported (like collections from python already aren't) To be clear, I'm not asking for it as a convenience function, more like you can unlock performance in the library that users can't without dropping into ODPI-C |
Beta Was this translation helpful? Give feedback.
-
This is being tracked in #375 |
Beta Was this translation helpful? Give feedback.
-
I was wondering how you guys feel about exposing a convenient way to load an Arrow table straight into a db table.
Right now it requires going Arrow -> Python -> Oracle types, would be nice to skip python in between.
Doing it in the library also means
executemany()
could be aligned to aRecordBatch
, making streaming easier, etc etcIs this a big no because it would add a potentially unnecessary dependency?
Is this more of a ODPI-level question?
Beta Was this translation helpful? Give feedback.
All reactions