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

Hit error: 15 (MissingVersionError) with message (No table version found.) #95

Closed
bali1285 opened this issue Sep 18, 2024 · 2 comments
Closed

Comments

@bali1285
Copy link

Hey there,

I have similar issue to: #7

I'm hitting 'No Table version found'. Below is the .py code that i played with that gives me the error. Error below as well

IOException: IO Error: Hit DeltaKernel FFI error (from: While trying to read from delta table: '[file://c:\Users\user.name\folder\my_delta_table/'): Hit error: 15 (MissingVersionError) with message (No table version found.)

import duckdb
from deltalake import DeltaTable, write_deltalake
con = duckdb.connect()
con.execute("INSTALL delta;")
con.execute("LOAD delta;")
df1 = con.query("SELECT i AS id, i % 2 AS part, 'value-' || i AS value FROM range(0, 5) tbl(i)").df()
df2 = con.query("SELECT i AS id, i % 2 AS part, 'value-' || i AS value FROM range(5, 10) tbl(i)").df()
write_deltalake(f"./my_delta_table", df1, partition_by=["part"])
write_deltalake(f"./my_delta_table", df2, partition_by=["part"], mode='append')

df = con.query("""
SELECT *
FROM delta_scan('./my_delta_table/')
ORDER BY id;
""").df()

@samansmink
Copy link
Collaborator

Sorry for the late reply here, but I can no longer reproduce this issue so im kindof assuming this works as expected now. Note that im using the same package in the scripts/generate_test_data.py script that is used to test against. Please feel free to reopen if the issue persists!

@samansmink
Copy link
Collaborator

ah my bad, I realize now that this is likely a windows-specific issue. It appears to be a similar issue to #103. So I will keep it closed as a duplicate: please check in with the other issue for progress!

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

No branches or pull requests

2 participants