-
-
Notifications
You must be signed in to change notification settings - Fork 117
sqlite-utils memory can't deal with multiple files with the same name #325
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
Comments
The |
Oddly I can't replicate this on macOS:
|
Here's the relevant code: sqlite-utils/sqlite_utils/cli.py Lines 1289 to 1292 in 7427a91
I can fix this by checking to see if |
Updated documentation: https://sqlite-utils.datasette.io/en/latest/cli.html#running-queries-directly-against-csv-or-json
|
When I use multiple files with the same name, e.g. in
sqlite-utils memory a/bug.csv b/bug.csv
, sqlite-utils creates invalid views.This can be reproduced with
Ideally, the tables would get unique names by including the next path segment until the names are unique. But just making the numbered t* aliases work would be good enough.
This problem can of course be worked around by renaming the files, but it would be nice if this case was handled more gracefully.
Thanks a lot for this great tool!
The text was updated successfully, but these errors were encountered: