-
Notifications
You must be signed in to change notification settings - Fork 208
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
Schema name in Postgres from
is incorrectly quoted
#822
Comments
it's non-blocking until prql-js has a new version we need to update to for other reasons (the latest published version, splitting by |
OK. Probably we should revert rather than block a release, but let me see whether it's an easy fix |
Similar issue with BigQuery
-> SELECT
db.schema.table.*
FROM
`db.schema.table` Which causes this error: In this case the backticks after the FROM are fine, but they are missing after the SELECT - db.schema.table.*
+ `db.schma.table`.* |
This is also breaking Spark SQL (not a supported dialect, I know)—in this case, the
(Seems like it would be ideal to split on |
Closed by #838. Thanks for everyone's patience |
This behaviour was introduced in #809
Assume you have a Postgres database with a schema
some_schema
(this could even bepublic
)compiles to
which is an invalid query – the schema name shouldn't be inside quotes (postgres will complain with
relation "some_schema.tablename" does not exist
.If we want to keep the quotes, a valid Postgres query would be:
or just
The text was updated successfully, but these errors were encountered: