-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow ingesting in-memory file-like objects #435
Comments
i.e. allow passing through databricks-sql-python/src/databricks/sql/client.py Lines 656 to 668 in d31063c
|
Hi @dhirschfeld! This indeed sounds like an intersting feature, thank you for sharing it! I have to talk with the rest of team first. Databricks SQL |
Some added context, @dhirschfeld's idea is exactly how the e2e tests for this feature behave (since we ran them in github actions where we don't have a real file system to write to). Should be a straightforward modification. |
Writing large amounts of data to disk, only for
databricks-sql-connector
to then read it back in from disk, is incredibly inefficient.It would be much more efficient to be able to provide a file-like object to use instead of a filepath. In that way a user could write the data to an in-memory
io.BytesIO
object instead of writing the data to disk.The text was updated successfully, but these errors were encountered: