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 21:18:49 UTC
[PR] [Fix][Connector-V2] Route DuckDB JDBC tables to attached catalogs [seatunnel]
hutiefang76 opened a new pull request, #12506:
URL: https://github.com/apache/seatunnel/pull/12506
## What changed
When a DuckDB connection has an attached catalog (including DuckLake) and both catalogs contain the same schema/table name, JDBC table discovery previously ignored the catalog. Column introspection could mix the two tables, and generated SQL omitted the attached catalog, so a job targeting `lake.main.events` could read or write `main.events` in the local database instead.
This change qualifies table and column metadata by catalog, checks attached catalog existence, and preserves the catalog in generated table identifiers and discovered table options. The existing two-part local DuckDB table path remains supported. The English and Chinese DuckDB docs now show how to attach DuckLake on each JDBC connection and address a three-part table path.
## Validation
- DuckDB catalog, dialect, and Source/Sink tests pass, including same-name local/attached tables.
- The Source/Sink regression was also run against a real DuckLake using DuckDB JDBC 1.3.1, SQLite metadata, and a separate data directory. It read the lake row, appended to the lake, reopened the catalog, and verified that the local same-name table was unchanged.
- The connector-jdbc module unit suite passed with 1,065 tests, 0 failures/errors, and 7 skipped; module `verify` passed. The DuckLake extension-dependent test runs when `ducklake.extension` and `sqlite.scanner.extension` system properties are provided.
This is catalog routing for existing JDBC paths, not a new DuckLake connector or a change to delivery guarantees.
--
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: [PR] [Fix][Connector-V2] Route DuckDB JDBC tables to attached catalogs [seatunnel]
Posted by "hutiefang76 (via GitHub)" <gi...@apache.org>.
hutiefang76 commented on PR #12506:
URL: https://github.com/apache/seatunnel/pull/12506#issuecomment-5868929750
I reproduced the MarkdownTest failure and fixed all four DuckDB pages in `3bf22eb42`; each now ends with `<ChangeLog />`. The original head fails that test locally, and the corrected head passes all four MarkdownTest checks.
I also documented the unknown-catalog behavior for table lookup and dry-run in both incompatible-changes pages, added the save-mode ordering comment, removed the unused constant, and kept the failure regression checking the CatalogException, requested alias and migration hint without depending on the complete error prefix. Connector verify passes on JDK 8 and 17: 41 tests on each, with only the PostgreSQL/S3 fixture skipped. The local DuckLake extension cases ran.
Your merge order makes sense: land #12501 and #12503 first, then I’ll rebase this branch and reconcile the identifier/literal helpers, including quoting the catalog component. #12508 also shares docs/tests. This push starts a fresh CI run; I haven’t treated the local results as a green remote build.
--
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: [PR] [Fix][Connector-V2] Route DuckDB JDBC tables to attached catalogs [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on PR #12506:
URL: https://github.com/apache/seatunnel/pull/12506#issuecomment-6473836605
Thanks for the contribution. The merge-gate fact cited in my previous conclusion has changed: GitHub now reports a real merge conflict. This follow-up corrects that gate on the unchanged reviewed head; it is not another full source review or a sync request based only on being behind.
Gate snapshot (2026-10-28T15:55:35+00:00), head `5060a3c1bce37783f4634a5afc7607d885950e81`: [Build](https://github.com/apache/seatunnel/runs/120738267693) is `SUCCESS`.
CI is green, but that does not remove the separate conflict gate below. My [previous source conclusion](https://github.com/apache/seatunnel/pull/12506#pullrequestreview-5638009813) and any independent source requests remain as recorded; no new effective approval or dismissal is performed by this clarification.
Separately, GitHub reports merge conflicts with `dev`. Please sync the latest base and resolve the conflicts first; the resulting new head needs checks and re-review. This conflict gate is independent of CI and existing source findings.
--
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: [PR] [Fix][Connector-V2] Route DuckDB JDBC tables to attached catalogs [seatunnel]
Posted by "hutiefang76 (via GitHub)" <gi...@apache.org>.
hutiefang76 commented on PR #12506:
URL: https://github.com/apache/seatunnel/pull/12506#issuecomment-5864024173
Thanks for tracing the upstream-database fallback. I kept the strict behavior and added the explicit error during DuckDB save-mode initialization, including IGNORE. The factory regression now covers an inherited mydb name, checks that the existing main table is untouched, and verifies the migration with database=main. Both language guides and incompatible-changes now describe this, the reserved aliases, and the discovery limit. Catalog matching is case-insensitive and shares the alias rule.
I also checked the neighboring paths: CREATE TABLE was still dropping the catalog qualifier, and the catalog injected user=duckdb/password placeholders that can clash with a simultaneous writer connection. Both now have deterministic regressions; the connection mismatch also reproduced directly with JDBC 1.3.1.
JDK 8 and 17 each pass module verify: 40 executed tests, no failures/errors, plus one PG/S3 test skipped. The local DuckLake and SQLite extensions were enabled for the actual lake tests. I made the default-CI gating and the earlier distributed evidence explicit in the description.
--
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: [PR] [Fix][Connector-V2] Route DuckDB JDBC tables to attached catalogs [seatunnel]
Posted by "hutiefang76 (via GitHub)" <gi...@apache.org>.
hutiefang76 commented on PR #12506:
URL: https://github.com/apache/seatunnel/pull/12506#issuecomment-6378094279
Merged the current dev into this branch and retained both migration-guide updates. The routing code and existing tests are unchanged. On the merged tree, root Spotless and the required skip-tests verify passed, followed by 102 DuckDB tests with no failures or skips. The DuckLake SQLite, in-memory, retained-snapshot and PostgreSQL/S3 two-writer cases all executed locally. I have updated the PR description with the current validation and its limits; remote CI is still a separate gate.
--
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: [PR] [Fix][Connector-V2] Route DuckDB JDBC tables to attached catalogs [seatunnel]
Posted by "hutiefang76 (via GitHub)" <gi...@apache.org>.
hutiefang76 commented on PR #12506:
URL: https://github.com/apache/seatunnel/pull/12506#issuecomment-6483610295
Merged dev `886a3ac6e59a` locally, resolving the English migration-document conflict by retaining both entries. Production and test files are unchanged from the reviewed head; the PR remains thirteen files. Spotless, root verify with tests skipped, and all 102 native DuckDB regressions passed with no failures, errors or skips, including the PostgreSQL/S3 smoke test. New-head CI and maintainer re-review remain separate gates.
--
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