Skip to content
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

TableNotFoundError on DeltaTable.create(...) #2195

Closed
rspears74 opened this issue Feb 20, 2024 · 7 comments
Closed

TableNotFoundError on DeltaTable.create(...) #2195

rspears74 opened this issue Feb 20, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@rspears74
Copy link

Environment

Delta-rs version: 0.15.1

Binding: Python

Environment:

  • Cloud provider: AWS
  • OS: MacOS
  • Other: Running in Github Action

Bug

What happened:
I am calling DeltaTable.create with an S3 path. I get a TableNotFoundError.

What you expected to happen:
I expect a table to be created at the path I'm specifying.

How to reproduce it:
Use DeltaTable.create(...) (maybe with an S3 path?)

More details:

@rspears74 rspears74 added the bug Something isn't working label Feb 20, 2024
@ion-elgreco
Copy link
Collaborator

It would help if you can provide more details, what is the exact code you're running. Something that we can reproduce as well

@rspears74
Copy link
Author

rspears74 commented Feb 20, 2024

There's not much more to show.

schema = '''{
  "name": "id",
  "type": "string",
  "nullable": false,
  "metadata": {}
}'''
storage = {"AWS...": "...", ...}
table = DeltaTable.create(delta_table_s3_path, schema, mode='overwrite', storage_options=storage)

The main point here is that DeltaTable.create should never throw a TableNotFoundError as it doesn't even make sense in context. It should either create a new table, or say that a table already exists, but then if you create it in overwrite mode, it should work.

@rspears74
Copy link
Author

This might have a similar problem as found in #2197 - which is essentially that it's unable to handle creating a new "folder" in s3.

@ion-elgreco
Copy link
Collaborator

@rspears74 the reason it throws a tableNotFoundError is because at the end of creation it's trying to read the table after creation.

I also use S3 but I don't run into this issue so perhaps it's some permission issue?

@rspears74
Copy link
Author

@ion-elgreco See this comment #2195 (comment)

@ion-elgreco
Copy link
Collaborator

ion-elgreco commented Mar 25, 2024

@rspears74 have you tried it against the latest version also?

It's not straightforward what the issue is because I don't have this experience with S3, albeit it's not the AWS s3

@rspears74
Copy link
Author

@ion-elgreco I have not, I'm no longer working with delta-rs (this was over a month ago, and the most recent version at the time was 0.15.1). I don't have time to investigate further right now, but I expect you could potentially reproduce my issue by trying to create a table in an S3 folder that doesn't yet exist - following the example in this comment in the other issue I opened. I've worked around these issues for the time being.

@ion-elgreco ion-elgreco closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants