-
Notifications
You must be signed in to change notification settings - Fork 499
fix: creating new DeltaTable with invalid table name path no longer creates empty directory #3504
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
base: main
Are you sure you want to change the base?
fix: creating new DeltaTable with invalid table name path no longer creates empty directory #3504
Conversation
Signed-off-by: Sam Meyer-Reed <[email protected]>
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. |
This is likely out of scope for this PR, but I'm seeing other places (eg. in |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3504 +/- ##
==========================================
+ Coverage 74.02% 74.11% +0.08%
==========================================
Files 148 150 +2
Lines 44335 44551 +216
Branches 44335 44551 +216
==========================================
+ Hits 32821 33017 +196
- Misses 9380 9381 +1
- Partials 2134 2153 +19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@smeyerre can you add a test as well? |
I think we do need to be a little bit careful here. Valid url not only means that the directory exists, but we also ensure e.g. that a path ends in '/' which is quite important since e.g. We also need to validate how the create command behaves in this case. We still use a prefixed store in many places and while object store will create any directory within its scope, it might not create any parent directory that is part of the prefix. Since we can no longer guarantee that a directory exists we now need to ensure that at the very least in the All that said, I do agree that we should not just eagerly create the directory, before we know its what the user wants. |
Signed-off-by: Sam Meyer-Reed <[email protected]>
ae67ef5
to
b78dee6
Compare
Just want to make sure I'm understanding fully since I'm not super experienced with DeltaTable. You're saying we want to be extra sure that things like Could you give me an example of the expected behavior you're describing with object store directory creation as well? Thanks! |
Description
Previously when using the Python bindings, creating a DeltaTable with an incorrect table path caused an empty directory to be made. Now no directory is created and an appropriate error message is served:
Related Issue(s)