You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "hutiefang76 (via GitHub)" <gi...@apache.org> on 2026/09/27 16:09:34 UTC
[I] [Bug][Connector-V2] Escape quoted DuckDB identifiers in generated SQL [seatunnel]
hutiefang76 opened a new issue, #12500:
URL: https://github.com/apache/seatunnel/issues/12500
### What happened
The DuckDB JDBC dialect and CREATE TABLE builder wrap identifiers in double quotes without escaping double quotes inside the identifier. A legal DuckDB table or column name such as `odd"table` therefore produces malformed SQL (`"odd"table"`) when used through generated SQL. The dialect's two-argument `tableIdentifier` also reconstructs a table path by concatenating strings, which splits a table name containing a dot.
### Expected behavior
Each identifier component should be quoted independently and embedded double quotes should be doubled, as DuckDB SQL requires. This should apply to generated source/sink SQL and catalog CREATE TABLE SQL, including constraint/index names.
### Reproduction
Create `"main"."odd""table" ("odd""column" INTEGER)` through DuckDB JDBC and use the DuckDB dialect to generate the table and column identifiers. The unescaped SQL cannot be executed; the correctly escaped SQL can be inserted into and read back.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Connector-V2] Escape quoted DuckDB identifiers in generated SQL [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on issue #12500:
URL: https://github.com/apache/seatunnel/issues/12500#issuecomment-5869546529
Classification: A / Connector-V2 DuckDB generated SQL identifier quoting.
The issue identifies two distinct boundaries: embedded double quotes must be escaped in each identifier component, and the two-argument table identifier must not split a legal table name containing a dot. #12501 is the exact active fix path and includes dialect, catalog DDL, generated-SQL, and integration coverage for quoted and dotted names.
It is still open with Build in progress, so do not treat the report as fixed or close it yet. Please keep the change confined to DuckDB identifier rendering and ensure the tests cover both generated source or sink SQL and catalog CREATE TABLE names.
No label or assignment change in this pass.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Connector-V2] Escape quoted DuckDB identifiers in generated SQL [seatunnel]
Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on issue #12500:
URL: https://github.com/apache/seatunnel/issues/12500#issuecomment-5863496980
Thanks for the clear report and reproduction. Could you share the SeaTunnel version (or commit) you are running, and if possible a minimal job config that triggers the malformed SQL? That will help confirm the affected code paths.
The proposed behavior sounds right: quote each identifier component independently, double any embedded double quotes, and apply this consistently to the generated source/sink SQL, the two-argument `tableIdentifier`, and the catalog CREATE TABLE SQL (including constraint/index names).
A fix should also include unit tests for identifiers containing double quotes and dots, plus an integration test that creates such a table and reads it back. Are you planning to open a PR for this?
<!-- streview-comment:1379 -->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org