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

After an error with the DuckDB backend, TidierDB is unable to proceed even when fixing the error #86

Closed
kdheepak opened this issue Dec 1, 2024 · 2 comments

Comments

@kdheepak
Copy link

kdheepak commented Dec 1, 2024

I have code that works:

image

But when I cause an error:

image

And after causing an error when I revert back to the code that works, it still continues to fail with the same old error:

image

Here's a video of that in action:

julia-tidierdata-error.mov

It continues to work if I recreate the connection and table.

@drizk1
Copy link
Member

drizk1 commented Dec 1, 2024

So as far as the table goes, **tables (sorry for the initial misspelling) are stored as mutable structs.

So after you save the table, you need to use t(table_name) starting to change. Otherwise you will alter the underlying struct.

Resave the table and then as long as you refer to it with @chain DB.t(table) rest of code this should fix this issue where it will no longer happen if you make changes and rerun w new edits

@kdheepak
Copy link
Author

kdheepak commented Dec 1, 2024

That resolves this thank you!

@kdheepak kdheepak closed this as completed Dec 1, 2024
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