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

SQLite reader silently replaces empty strings with "n/a" #2411

Closed
dbueno opened this issue Apr 21, 2023 · 1 comment · Fixed by #2412
Closed

SQLite reader silently replaces empty strings with "n/a" #2411

dbueno opened this issue Apr 21, 2023 · 1 comment · Fixed by #2412
Labels
bug - identified Bugs with an identified cause

Comments

@dbueno
Copy link
Contributor

dbueno commented Apr 21, 2023

I use empty strings all over the place in my Souffle code. I recently switched from using CSVs to using SQLite and souffle doesn't preserve the content of tuples that had empty strings. Instead, after import, the empty strings are replaced with the string "n/a". I don't think this should be done; import should preserve what was exported.

Is there a workaround for this?

@quentin
Copy link
Member

quentin commented Apr 25, 2023

I agree that the current logic seems wrong, especially for strings.
I don't see any workaround, it requires a fix.

dbueno added a commit to dbueno/souffle that referenced this issue May 16, 2023
@quentin quentin added the bug - identified Bugs with an identified cause label Jun 17, 2023
quentin pushed a commit that referenced this issue Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug - identified Bugs with an identified cause
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants