Skip to content

streaming ingestion support for PUT operation #643

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

Merged
merged 3 commits into from
Aug 21, 2025

Conversation

sreekanth-db
Copy link
Contributor

@sreekanth-db sreekanth-db commented Jul 21, 2025

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • Other

Description

Currently if users want to ingest an in-memory object or input stream (which they might have generated by some processing) using the PUT command, they first need to save it into a file on the disk and need to pass the the file path in the PUT command. This involves unnecessary disk I/O for writing and reading back from the disk. In this PR we are providing an interface to directly pass the in-memory object to the command to remove disk I/O

Related issue: #435

Example usage: https://github.com/sreekanth-db/databricks-sql-python/blob/4cd2cee3d793760ebab964191136bbd19b33d399/examples/streaming_put.py (used for manual testing as well)

Unit tests and e2e tests are also included in the changed files

Integration tests successful run: https://github.com/databricks/databricks-sql-python/actions/runs/16801948579/job/47585191807

How is this tested?

  • Unit tests
  • E2E Tests
  • Manually
  • N/A

Related Tickets & Documents

@jprakash-db
Copy link
Contributor

@vikrantpuppala Plz have a look into the http_client usage

Signed-off-by: Sreekanth Vadigi <[email protected]>
Signed-off-by: Sreekanth Vadigi <[email protected]>
Copy link
Contributor

@jprakash-db jprakash-db left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor Nits. LGTM. Thanks for making the changes

Signed-off-by: Sreekanth Vadigi <[email protected]>
@sreekanth-db sreekanth-db merged commit 9e67c79 into databricks:main Aug 21, 2025
27 of 29 checks passed
@sreekanth-db sreekanth-db linked an issue Aug 21, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow ingesting in-memory file-like objects
2 participants