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

unquoted problematic table names #21

Open
mdsumner opened this issue Apr 17, 2024 · 0 comments
Open

unquoted problematic table names #21

mdsumner opened this issue Apr 17, 2024 · 0 comments

Comments

@mdsumner
Copy link
Contributor

mdsumner commented Apr 17, 2024

I have poorly named parquet files like "outputs/000016.parquet", "outputs/000017.parquet" and so I see this:

open_dataset(files)
Error: Parser Error: syntax error at or near "000001"
LINE 1: CREATE OR REPLACE TEMPORARY VIEW 000001 AS SELECT * FROM parquet_scan(['..

Renaming the files makes it work e.g. "./b000001.parquet", "./b000002.parquet"

I don't know if futzing the string is better than quoting the table name generally, but maybe quoting is also needed

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

1 participant