-
Couldn't load subscription status.
- Fork 537
feat(url): use Url in Rust for accessing to DeltaTable, use only string-based api in Python #3707
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
feat(url): use Url in Rust for accessing to DeltaTable, use only string-based api in Python #3707
Conversation
249d970 to
045bad4
Compare
|
ACTION NEEDED delta-rs follows the Conventional Commits specification for release automation. The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3707 +/- ##
==========================================
- Coverage 75.38% 75.36% -0.02%
==========================================
Files 145 145
Lines 43690 43955 +265
Branches 43690 43955 +265
==========================================
+ Hits 32935 33127 +192
- Misses 9161 9222 +61
- Partials 1594 1606 +12 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
045bad4 to
2410c54
Compare
2410c54 to
9f19896
Compare
0fb5b46 to
8a4c58b
Compare
9e14c5f to
9b56090
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That must have been fun tucking about every test that opens a table :).
Thanks for taking care of this.
| /// Will fail fast if specified `table_uri` is a local path but doesn't exist. | ||
| pub async fn open_table(table_uri: impl AsRef<str>) -> Result<DeltaTable, DeltaTableError> { | ||
| let table = DeltaTableBuilder::from_valid_uri(table_uri)?.load().await?; | ||
| pub async fn open_table(table_uri: Url) -> Result<DeltaTable, DeltaTableError> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just thinking out loud .. with object store we do have reqwest in our dependency tree anyways, which exposes an IntoUrl trait ... however then we would have a coupling with the requwest version as we now expose its types, so not worth it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me put a nice cargo tree 😄
either → … → reqwest v0.12.15
delta_kernel v0.14.0 → reqwest v0.12.15
deltalake-core v0.28.0 → reqwest v0.12.15
deltalake-lakefs v0.11.0 → reqwest v0.12.15
I'm still searching, but idk where we could use the IntoUrl... should we safely deprecate it?
40bfca3 to
c7c31a5
Compare
Fun? I want to know your hobbies @roeap 🤣 |
8e2d4f5 to
3d17fdd
Compare
79e8aad to
95b1fcd
Compare
Pull request was closed
Rebase failed
95b1fcd to
72548b0
Compare
72548b0 to
5b2a309
Compare
4fc2878 to
c1260ce
Compare
Rebase failed
…ng-based api in Python Signed-off-by: Florian Valeye <[email protected]>
c1260ce to
d5195c1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Signed-off-by: R. Tyler Croy <[email protected]>
Description
Use the URL crate in Rust for accessing the DeltaTable. Use only the string-based API in Python.
url::Urlfor opening/creating tables.Related Issue(s)
Documentation
&str&strfor the Python binding with helper methodsSide notes: 💚
@rtyler, I started contributing to delta-rs with my first PR regarding URI.
So, as a "comeback", I'm taking this opportunity to improve it 😄