-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Syntax error when creating foreign table from Iceberg #177
Comments
Does it work with other column names? Does your column need to be called authorization? |
It appears to, that column wasn't the first
are you... joking? why not make the query safe by quoting the identifier names? See https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS Looks like the problem is here maybe: pg_analytics/src/fdw/trigger.rs Line 284 in 9578517
|
Apologies, and taking your question on good faith... No I can't. I am trying to import data from an existing database, which was originally created by a system (Django web framework) which always quotes identifier names, allowing use of values such as (schema and table names should also be quoted for same reason) |
I figured the answer was going to yes, but I just wanted to make sure! It sounds like you've found the root cause. Our team is pretty swamped with work on https://github.com/paradedb/paradedb, so it's hard to get their attention for |
What happens?
I'm following through the docs for the first time, to set up a foreign table that points to Iceberg table that I mounted to the container
I get this error:
it looks to me like this may just be due lack of quoting for the column names in the generated DDL query?
i.e. the problem is that I have a column called
authorization
and that is a reserved keyword for Postgres:https://www.postgresql.org/docs/current/sql-keywords-appendix.html#:~:text=non%2Dreserved-,AUTHORIZATION,-reserved%20(can%20be
To Reproduce
I guess create an Iceberg table with a field called
authorization
and try import it into pg_analyticsOS:
macOS
ParadeDB Version:
latest-pg17
Are you using ParadeDB Docker, Helm, or the extension(s) standalone?
ParadeDB Docker Image
Full Name:
Paul Garner
Affiliation:
Infomedia
Did you include all relevant data sets for reproducing the issue?
Yes
Did you include the code required to reproduce the issue?
Did you include all relevant configurations (e.g., CPU architecture, PostgreSQL version, Linux distribution) to reproduce the issue?
The text was updated successfully, but these errors were encountered: