Skip to content

[Docs] Fix connector and transform doc inaccuracies verified against source code - #12709

Merged
nzw921rx merged 11 commits into
apache:devfrom
zhangshenghang:docs-fix-batch-20261009
Nov 25, 2026
Merged

nzw921rx merged 11 commits into
apache:devfrom
zhangshenghang:docs-fix-batch-20261009

Conversation

@zhangshenghang

Copy link
Copy Markdown
Member

Purpose of this PR

This PR fixes a batch of real documentation inaccuracies found by comparing docs against the actual source code on dev. It covers connector docs (Kafka, Hive, Kudu, FtpFile, HdfsFile, FakeSource, Paimon, Iceberg, StarRocks, Jdbc, Doris, MongoDB), transform docs (LLM, Embedding, Python, Calcite) and the docs sidebar, in both English and Chinese.

What was found and changed

Every fix below was verified against the corresponding Java source before editing.

Kafka (source + sink, en + zh)

  • Removed the false claim "By default we use 2pc to guarantee exactly once": KafkaSinkOptions.SEMANTICS defaults to KafkaSemantics.NON, which provides no guarantees. The note now explains how to actually get exactly-once (semantics = EXACTLY_ONCE + checkpoint).
  • Rewrote the SASL/Kerberos FAQ for source and sink: the previous examples put kafka.security.protocol, kafka.sasl.* as top-level keys. The connector only reads the kafka.config map (KafkaSinkWriter.getKafkaProperties / KafkaSourceConfig.createKafkaProperties), so those flat kafka.* keys are silently ignored and authentication would never take effect. Examples now use kafka.config = { ... }.
  • Sink FAQ format list now includes maxwell_json and compatible_debezium_json (present in MessageFormat / the options table); source format row now includes compatible_kafka_connect_json.
  • Documented that partition and partition_key_fields are mutually exclusive (KafkaSinkSerializer throws a validation error when both are set).
  • zh sink: aligned the outdated "configure kafka_headers_fields carefully" note with the code — NATIVE + kafka_headers_fields throws OPERATION_NOT_SUPPORTED at serializer init, so the job fails to start.
  • Fixed kafka.max.poll.records → max.poll.records inside kafka.config, and the [formats](../formats) directory link → ../formats/overview.md.

Hive (source + sink, en + zh)

  • Source: removed claims of CSV/JSON/markdown support. HiveTableUtils.parseFileFormat only supports text/parquet/orc and throws "Hive connector only support [text parquet orc] table now"; the whole fabricated markdown "document-element" schema section was removed.
  • Source: fixed inverted deprecation guidance. Code prefers table_list and marks the tables_configs path @Deprecated ("hive is structured, should use table_list"), while the doc told users to migrate to tables_configs. Options table, sections and the multi-table example now point to table_list.
  • Sink: removed CSV/JSON from the write-format lists (write path only resolves ORC/TEXT/PARQUET, format comes from the target table STORED AS), rewrote the format and partition FAQs (the documented file_format_type/partition_by user config is derived/overridden from table metadata, not user-set), and removed a stray copy-pasted line under krb5_path.
  • Source: compress_codec no longer lists json/csv rows.

Kudu (source + sink, en + zh)

  • Fixed wrong type mappings: source INT8/INT16/INT32 were collapsed to INT; now INT8→TINYINT, INT16→SMALLINT, INT32→INT per KuduTypeMapper. Sink table now maps TINYINT→INT8, SMALLINT→INT16, INT→INT32, BIGINT→INT64.

FtpFile (source, en + zh)

  • Removed the "Reading via SFTP" example that used a non-existent ftp_properties option and fs.defaultFS (ignored by FtpConf, which builds ftp://host:port from host/port). The connector cannot read SFTP at all; the section now explains this and points to the dedicated SftpFile connector. Added parquet/orc to the format list.

HdfsFile (sink, en + zh)

  • canal_json/debezium_json/maxwell_json were listed under "compress codec" in the English doc; they are FileFormat entries, now listed under file format types (matching the zh doc). zh list also gained the missing XML/binary entries.

FakeSource (en + zh)

  • Removed the table-names example: FakeSource never reads table-names (MultipleTableFakeSourceConfig only handles tables_configs/schema), so the example silently produced one table; a correct tables_configs example already exists in the same doc.
  • Fixed double.fake.mode description that said "generating float data" (copy-paste).

Paimon (source, en + zh)

  • FAQ used a non-existent paimon.catalog.type option; the real key is catalog_type (PaimonBaseOptions).

Iceberg (source, zh)

  • Three Kerberos rows had English no in the required column of an otherwise-Chinese table; unified to 否.

StarRocks (sink, en + zh)

  • batch_max_rows is intType and batch_max_bytes is longType in StarRocksSinkOptions; the doc had the types swapped. Also documented multi_table_sink_replica (default 1).

Jdbc (source + sink, en + zh)

  • Documented the schema option (JdbcCommonOptions.SCHEMA, "for databases that support the schema parameter, give it priority") — the en sink example already used schema = "dbo" without the option being documented.
  • Documented multi_table_sink_replica (default 1).
  • zh sink: added the SqlServer CDC multi-table example that only existed in en, and fixed the mistranslated heading "示例可选" → "方言列表" (en: "dialect list").

Doris (source + sink, en + zh)

  • Sink: documented default-database (default information_schema) and multi_table_sink_replica.
  • Source: added the top-level database/table rows to the base options table (the note and all examples require them, but they were only documented inside the table_list sub-table).

MongoDB (sink, en + zh)

  • Documented multi_table_sink_replica (default 1).

Transforms

  • docs/sidebars.js: registered transforms/encrypt — the page existed in en+zh but was unreachable from navigation.
  • llm (en + zh): added QIANFAN to model_provider options (ModelProvider.QIANFAN), fixed api_key required=yes contradiction (it is conditional per LLMTransformFactory.optionRule; not used by CUSTOM), documented secret_key, oauth_path and process_batch_size (default 100, legacy inference_batch_size fallback).
  • embedding (en + zh): documented process_batch_size and added ZHIPU to the provider list.
  • python (en + zh): noted that ROUTE_TO_TABLE passes config validation but is rejected at runtime (only FAIL/SKIP supported).
  • calcite (en + zh): added the missing built-in GET_JSON_OBJECT UDF (GetJsonObjectFunction), since the text claims only Calcite standard functions exist beyond the listed UDFs.

Areas updated

  • docs/en|zh/connectors/source|sink/: Kafka, Hive, Kudu, FtpFile, HdfsFile, FakeSource, Paimon, Iceberg, StarRocks, Jdbc, Doris, MongoDB
  • docs/en|zh/transforms/: llm, embedding, python, calcite
  • docs/sidebars.js

42 files changed (275 insertions, 215 deletions).

Were both English and Chinese docs checked?

Yes. Every fix above was applied to both docs/en and docs/zh wherever both versions exist. The en/zh parity issues found (Hive format lists, zh Kafka NATIVE note, zh Jdbc missing SqlServer CDC example, zh Iceberg table language mix, zh HdfsFile missing XML/binary) were aligned in this PR.

Duplicate check (last 7 days)

I listed all PRs created against apache/seatunnel in the last week before submitting:

Verification

  • Every documentation claim changed here was checked against the corresponding source file (Options classes, factories, type mappers, serializers) — file/line evidence listed above.
  • node --check docs/sidebars.js passes.
  • A script validated all 245 relative markdown links across the 42 changed files resolve to existing files; markdown table column consistency checked for all changed tables.
  • The CI dead-link job (markdown-link-check) requires network access and is continue-on-error upstream; it was not run locally. No Java build is needed for docs-only changes, so spotless:apply / mvnw verify were not run.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this big and careful documentation sweep - the "verified against source" approach is exactly what these docs need. I went through the full diff (42 files, en and zh) and cross-checked the claims against the code on the PR head. The large majority are correct and valuable; I found two places where the new text itself is not accurate, plus the CI gate. Details below, all in one pass. This is a source-level review only (docs build and CI not run locally).

What Problem Does This PR Solve?

  • User pain point: Several connector and transform docs describe options, formats and defaults that do not match the code (for example Kafka "2PC by default", flat kafka.* SASL keys that are silently ignored, Hive CSV/JSON/markdown support that does not exist, wrong Kudu/StarRocks types, a non-existent SFTP path in FtpFile). Users copy these examples and get jobs that fail or quietly misbehave.
  • Fix approach: Compare docs against the Options classes, factories, type mappers and serializers, then correct the en and zh pages together, and register the missing transforms/encrypt page in the sidebar.
  • One-sentence summary: A docs-only accuracy pass over 12 connectors and 4 transforms, en and zh.

1. Code Change Review

1.1 Core Logic Analysis

No Java or runtime code changes; 42 files under docs/en, docs/zh and docs/sidebars.js. I verified the main claims against the head sources, and these are confirmed correct:

  • Kafka: KafkaSinkOptions.SEMANTICS defaults to NON; only kafka.config is read (KafkaSinkWriter.java:133-136, KafkaSourceConfig.java:138); partition plus partition_key_fields is rejected (KafkaSinkSerializer.java:113-117); MessageFormat contains COMPATIBLE_DEBEZIUM_JSON, MAXWELL_JSON, COMPATIBLE_KAFKA_CONNECT_JSON.
  • Hive: only text/parquet/orc (HiveTableUtils.parseFileFormat, HiveSink.java:201); table_list is the preferred multi-table key and tables_configs is the @Deprecated path (MultipleTableHiveSourceConfig.java:66-67); the sink overrides file_format_type and partition_by from table metadata (HiveSink.java:135-215).
  • Kudu type mapping (KuduTypeMapper.java:46-51), StarRocks batch_max_rows int / batch_max_bytes long (StarRocksSinkOptions.java:79-91), multi_table_sink_replica in the StarRocks / MongoDB / Doris / Jdbc sink factories, Doris default-database (DorisSinkOptions.java:96), Doris source database/table (DorisSourceFactory.java:63-64), Paimon catalog_type, FtpFile building ftp://host:port only (FtpConf.java:49), FakeSource having no table-names option, Python ROUTE_TO_TABLE being rejected (UNSUPPORTED_ERROR_HANDLE_WAY), GET_JSON_OBJECT UDF (GetJsonObjectFunction.java), process_batch_size with the inference_batch_size fallback (ModelTransformConfig.java:81-85), Embedding ZHIPU, and the transforms/encrypt page existing in both languages. The relative links (../formats/overview.md, SftpFile.md) resolve.

Runtime-path check for the doc claims that matter most (Kafka auth example): job config -> KafkaSinkFactory.optionRule() -> KafkaSinkWriter.getKafkaProperties() copies only the kafka.config map into the producer properties, so the old flat kafka.security.protocol keys never reached the client. The new example is the right one.

Key findings:

  • The PR is purely documentation and cannot affect runtime behavior.
  • It is a precise accuracy fix for most entries, with two exceptions that now document behavior the code does not have (Issues 2 and 3).
  • en and zh stay in step in the files I compared (Kafka, Hive, Jdbc, LLM, Kudu, StarRocks, FakeSource).

1.2 Compatibility Impact

Fully compatible (docs only). No APIs, options, defaults, protocols, serialization formats or behavior change, and no incompatible-changes.md entry is needed.

1.3 Performance / Side-Effect Analysis

None for runtime. The docs site build is unaffected apart from the new sidebar entry, which points to an existing page.

1.4 Error Handling and Logging

Not applicable to a docs-only change. Formal issues:

Issue 1: CI has not run on the PR head (Build is action_required)

  • Location: check run Build on head 027bfd08 - https://github.com/apache/seatunnel/runs/113927182305
  • Problem description: The check reports "Unable to detect the workflow run for testing the changes in your PR". The fork zhangshenghang/seatunnel has no workflow run for branch docs-fix-batch-20261009 (earlier pushes from the same fork did run). It looks the same for several other open PRs from this fork (their Build is also ACTION_REQUIRED), so it may be a fork-side Actions/trigger problem rather than anything in this diff.
  • Potential risk: For a docs PR the main automated safety nets are the docs/link checks, and without a run we have no CI evidence on the head. The branch is 1 commit ahead and 0 behind dev, so a sync is not what is needed.
  • Best improvement: Please check that GitHub Actions is enabled and allowed for the branch in the fork (Settings -> Actions -> General), then push an empty commit or close and reopen the PR so a push run appears; if it still does not start, let us know and we can help.
  • Severity: High (merge gate, not a source problem)
  • Raised by another reviewer: No

Issue 2: LLM transform docs now advertise QIANFAN, which the LLM transform rejects at runtime

  • Location: docs/en/transforms/llm.md (model_provider list, the new tip, secret_key, oauth_path sections) and docs/zh/transforms/llm.md lines 21-22, 32, 36, 109-115; code: seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/nlpmodel/llm/LLMTransform.java:134-136
  • Problem description: In LLMTransform the provider switch has case QIANFAN: falling into default: which throws IllegalArgumentException("Unsupported model provider: ..."). The only place QIANFAN appears for LLM is the factory's option rule (LLMTransformFactory.java:59), which declares the options but is not the runtime support; QIANFAN is genuinely implemented only for the Embedding transform (EmbeddingTransform.java:149). So a user following the new LLM text (model_provider = QIANFAN with secret_key and oauth_path) will pass option validation and then fail at job start.
  • Potential risk: This is new misleading guidance in a PR whose purpose is to remove misleading guidance. secret_key / oauth_path for the LLM transform are only consumed by QIANFAN, so those two new rows have no working use either.
  • Best improvement: Option A (recommended): keep OPENAI, DOUBAO, DEEPSEEK, KIMIAI, MICROSOFT, ZHIPU, CUSTOM for LLM, drop QIANFAN, secret_key and oauth_path from the LLM pages (keep them on embedding.md, where they are real). Option B: document them with an explicit note that LLM does not support QIANFAN yet, which is clumsy. The api_key row change (yes -> no) is fine, but note that DEEPSEEK, KIMIAI and ZHIPU also read api_key (LLMTransform.java:106,120,131), so the new tip that lists only OPENAI, DOUBAO and MICROSOFT could mention them as well.
  • Severity: High (documents unsupported behavior; easy fix)
  • Raised by another reviewer: No

Issue 3: The Jdbc source schema option is documented, but the source never reads it

  • Location: docs/en/connectors/source/Jdbc.md:186 and docs/zh/connectors/source/Jdbc.md (the new schema row); code: JdbcSourceFactory.optionRule() (connector-jdbc/.../source/JdbcSourceFactory.java:71-112, no SCHEMA), JdbcCatalogUtils.extractCatalogConfig (.../utils/JdbcCatalogUtils.java:497-511, builds the catalog config without schema)
  • Problem description: JdbcCommonOptions.SCHEMA is consumed on the sink path (JdbcSinkFactory.java:358-359) and by catalog factories created from sink options. On the source path the catalog config passed to findCatalog contains only url, user, password, compatible mode and the narrowing flags, and JdbcSourceConfig never reads schema. The source takes the schema from table_path (for example "test_schema.table1"), as the neighbouring row already documents. So the new row says "give it priority when resolving table metadata", which does not happen, and since the key is not in the source option rule it would also be reported as an unknown key by the config validate/check tooling.
  • Potential risk: Users add schema = "x" to a source expecting it to select the schema and get silently ignored (or an unknown-key complaint from validation).
  • Best improvement: Remove the source schema row in en and zh; keep the sink one, which is accurate (JdbcSinkFactory.java:358). Optionally, as a separate follow-up, declare schema in the sink option rule so validation also knows about it (not part of this docs PR).
  • Severity: Medium
  • Raised by another reviewer: No

2. Code Quality Assessment

2.1 Coding Standards

Markdown tables and headings are consistent with the surrounding pages, and the en and zh edits mirror each other. No code, so no comment requirements apply. One small note: in docs/en/connectors/sink/Kafka.md the new partition / partition_key_fields note sits under the "Dependencies" table, before "Sink Options"; it would read better next to the partition and partition_key_fields rows or in the options notes. Optional.

2.2 Test Coverage and Test Stability

Docs only; no UT/E2E changes, so no stability rating is needed. The PR description mentions a link check of the 245 relative links and node --check docs/sidebars.js, which matches what I saw.

2.3 Documentation Updates

This is the documentation update. en and zh are updated together for the files touched. Please re-sync both languages after fixing Issues 2 and 3 (the same two edits apply to docs/zh).

3. Architectural Soundness

3.1 Elegance of the Solution

Precise fix (docs aligned to source), apart from the two entries above.

3.2 Maintainability

The batching by connector and the "verified against X" notes in the PR description make this easy to audit. Keeping each future docs sweep to one claim per Options/factory reference is a good habit.

3.3 Extensibility

A follow-up idea, not for this PR: a small test or CI check that compares each connector's optionRule() keys with the options table in its doc would catch this class of drift (Issues 2 and 3 are exactly this) automatically.

3.4 Historical-Version Compatibility

Not applicable; no behavior change.

4. Issue Summary

Number Issue Location Severity
Issue 1 CI did not run on the head (Build is action_required) check run 113927182305 High (merge gate)
Issue 2 LLM docs advertise QIANFAN, secret_key, oauth_path, but LLMTransform throws for QIANFAN docs/{en,zh}/transforms/llm.md, LLMTransform.java:134-136 High
Issue 3 Jdbc source schema row documents an option the source ignores docs/{en,zh}/connectors/source/Jdbc.md, JdbcSourceFactory.java:71-112 Medium

5. Merge Recommendation

Conclusion: Ready to merge after fixes

  1. Blockers - must be fixed:
    • Issue 2: remove (or clearly qualify) the LLM QIANFAN / secret_key / oauth_path additions in en and zh, so the docs do not describe a provider the transform rejects.
    • Issue 1: get CI to run on the head (merge gate).
  2. Recommended fixes - non-blocking:
    • Issue 3: drop the Jdbc source schema row in en and zh (I would fix it in the same push; it is a two-line change).
    • The placement nit for the Kafka partition note.

Overall assessment: a high-value cleanup with strong verification discipline; the two inaccuracies are exactly the kind this PR is trying to eliminate, so it is worth fixing them before merge. No better alternative approach is needed. Happy to re-review quickly once you push - thank you for the effort on this!

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update, and for getting CI running again - the Build check on the new head is green, so my earlier CI blocker (Issue 1 in my previous review) is resolved. I re-reviewed the full diff on head 6c88c632 (42 files, en and zh; the branch is 3 commits ahead of dev and 0 behind) and re-checked every claim against the source. Two things from my last review are still open, and the latest commit introduced one new problem in the zh Hive page. I'm listing everything in one pass below.

What Problem Does This PR Solve?

  • User pain point: Several connector and transform docs describe options, formats and defaults that do not match the code, so users copy examples that fail or are silently ignored.
  • Fix approach: Compare docs against Options classes, factories, type mappers and serializers, fix the en and zh pages together, and register the missing transforms/encrypt sidebar entry.
  • One-sentence summary: A docs-only accuracy pass over 12 connectors and 4 transforms, en and zh.

1. Code Change Review

1.1 Core Logic Analysis

Docs only; no Java or runtime changes. The claims I confirmed last round are still correct on this head (Kafka semantics and kafka.config, Hive formats, Kudu/StarRocks types, FtpFile, FakeSource, Paimon, Doris, multi_table_sink_replica, Python ROUTE_TO_TABLE, Calcite GET_JSON_OBJECT, Embedding ZHIPU, sidebar entry). The merge from dev and the new commit only touch docs; no code was changed.

What changed since my last review (027bfd08 -> 6c88c632):

  • Merge of dev (no conflict with the PR's content except the zh Hive page, see Issue 1).
  • Commit 6c88c632 "Correct Hive table_list/tables_configs deprecation semantics to match source", which edits only docs/zh/connectors/source/Hive.md.

Runtime path for the Hive claim (this decides Issue 1):

Hive source config
  -> HiveSourceFactory.optionRule()  [HiveSourceFactory.java:53]  optional(TABLE_CONFIGS, TABLE_LIST)
  -> new MultipleTableHiveSourceConfig(readonlyConfig)  [MultipleTableHiveSourceConfig.java:45-55]
       -> TABLE_LIST present  -> parseFromLocalFileSourceByTableList()      (current path, L46-47)
       -> else TABLE_CONFIGS  -> parseFromLocalFileSourceByTableConfigs()   (L48-49)
            -> annotated @Deprecated with "hive is structured, should use table_list"  [L66-68]

So table_list is the current key and tables_configs is the deprecated one. The 6c88c632 commit message says it matches the source, but the text it produces says the opposite.

Key findings:

  • The PR is still a precise accuracy fix for almost all entries.
  • The latest commit reverses a previously correct statement in zh Hive (Issue 1).
  • The two content inaccuracies from my last review (LLM QIANFAN, Jdbc source schema) are still present on this head and unchanged.

1.2 Compatibility Impact

Fully compatible (docs only). No APIs, options, defaults, protocols, serialization formats or behavior change; no incompatible-changes.md entry needed.

1.3 Performance / Side-Effect Analysis

None at runtime. The only build-visible change is the sidebar entry, which points to an existing page.

1.4 Error Handling and Logging

Not applicable (docs only). Formal issues:

Issue 1: zh Hive source page now says the opposite of the code about table_list / tables_configs (regression from the latest commit)

  • Location: docs/zh/connectors/source/Hive.md lines 39-40 (options table), 60 (table_name section), 64 and 66-68 (the table_list / tables_configs sections) vs lines 158 and 162 of the same file; code: MultipleTableHiveSourceConfig.java:46-49,66-68, HiveSourceFactory.java:53
  • Problem description: At 027bfd08 the zh page correctly said table_list is recommended and tables_configs is deprecated (matching the code and docs/en/connectors/source/Hive.md). After the dev merge and commit 6c88c632, the options table, the table_name paragraph and both option sections say table_list is deprecated and tables_configs is the recommended one. The same page still says "use table_list, tables_configs is deprecated" in the Example 3 note (line 158) and the example uses table_list (line 162), so the page now contradicts itself, contradicts the en page, and contradicts the source.
  • Potential risk: Chinese-reading users will be told to migrate new jobs to the deprecated key, which is the exact "inverted deprecation guidance" this PR set out to remove.
  • Best improvement: Restore the 027bfd08 wording for these spots: table_list row = recommended multi-table list, tables_configs row and section = deprecated, kept for backward compatibility, new jobs should use table_list; line 60 should recommend table_list. The en page already has the right text to mirror.
  • Severity: High (new misleading guidance, easy fix)
  • Raised by another reviewer: No

Issue 2: LLM transform docs still advertise QIANFAN, which LLMTransform rejects at runtime (carryover from my previous review, still open)

  • Location: docs/en/transforms/llm.md lines 23-24, 34, 38, 111-117; docs/zh/transforms/llm.md lines 21-22, 32, 36, 109-115; code: LLMTransform.java:134-136
  • Problem description: The provider switch sends case QIANFAN: into default: and throws IllegalArgumentException("Unsupported model provider: ..."). QIANFAN is implemented only for the Embedding transform (EmbeddingTransform.java:149). A user who follows the new LLM text passes option validation and then fails at job start; secret_key and oauth_path have no working use in the LLM transform.
  • Potential risk: Misleading guidance in a PR whose purpose is to remove it.
  • Best improvement: Option A (recommended): list OPENAI, DOUBAO, DEEPSEEK, KIMIAI, MICROSOFT, ZHIPU, CUSTOM for LLM and drop QIANFAN, secret_key, oauth_path from both LLM pages (keep them on the Embedding pages, where they are real). Option B: keep them with an explicit "not supported by the LLM transform yet" note. Also, the api_key tip lists only OPENAI, DOUBAO and MICROSOFT, but DEEPSEEK, KIMIAI and ZHIPU also read api_key (LLMTransform.java:106,120,131), so it can mention them too.
  • Severity: High (documents unsupported behavior)
  • Raised by another reviewer: No

Issue 3: Jdbc source schema row documents an option the source never reads (carryover, still open)

  • Location: docs/en/connectors/source/Jdbc.md:186, docs/zh/connectors/source/Jdbc.md (new schema row); code: JdbcSourceFactory.optionRule(), JdbcCatalogUtils.extractCatalogConfig
  • Problem description: schema is consumed on the sink path (JdbcSinkFactory.java:358-359); nothing under the source package or JdbcCatalogUtils reads it, and it is not in the source option rule. The source takes the schema from table_path.
  • Potential risk: Users add schema = "x" to a source expecting it to take effect and it is ignored (or flagged as an unknown key by config validation).
  • Best improvement: Remove the source schema row in en and zh; keep the sink one, which is accurate.
  • Severity: Medium
  • Raised by another reviewer: No

Issue 4: zh Hive source compress_codec row mentions CSV/JSON output (minor, arrived via the dev merge)

  • Location: docs/zh/connectors/source/Hive.md:53
  • Problem description: The row says "text / CSV / JSON output", while the en row says "text files" and the PR removes CSV/JSON claims elsewhere on this page (Hive only supports text/parquet/orc).
  • Best improvement: Align the zh row with the en wording (text files only, lzo and none).
  • Severity: Low
  • Raised by another reviewer: No

2. Code Quality Assessment

2.1 Coding Standards

Tables and headings follow the surrounding pages. No code, so no comment requirements apply. Optional nit from last time: the Kafka sink partition / partition_key_fields note would read better next to the option rows than under the Dependencies table.

2.2 Test Coverage and Test Stability

Docs only; no UT/E2E changes, so no stability rating is needed. Build on 6c88c632 passes (fork run completed successfully).

2.3 Documentation Updates

This is the documentation update. Please keep en and zh in step when fixing Issues 1-3 (Issue 1 is zh only, Issues 2 and 3 apply to both languages).

3. Architectural Soundness

3.1 Elegance of the Solution

Precise fix (docs aligned to source), apart from the entries above.

3.2 Maintainability

Batching by connector and the "verified against source" notes make this easy to audit. A small CI check that compares each connector's optionRule() keys with the options table in its doc would catch this class of drift (Issues 2 and 3) automatically; a follow-up idea, not for this PR.

3.3 Extensibility

Same as above; no extra concerns.

3.4 Historical-Version Compatibility

Not applicable; no behavior change.

4. Issue Summary

Number Issue Location Severity
Issue 1 zh Hive says table_list is deprecated and tables_configs recommended (opposite of the code) docs/zh/connectors/source/Hive.md:39-40,60,64-68 High
Issue 2 LLM docs advertise QIANFAN, secret_key, oauth_path, but LLMTransform throws for QIANFAN docs/{en,zh}/transforms/llm.md, LLMTransform.java:134-136 High
Issue 3 Jdbc source schema row documents an option the source ignores docs/{en,zh}/connectors/source/Jdbc.md, JdbcSourceFactory.java Medium
Issue 4 zh Hive compress_codec row mentions CSV/JSON docs/zh/connectors/source/Hive.md:53 Low

5. Merge Recommendation

Conclusion: Ready to merge after fixes

  1. Blockers - must be fixed:
    • Issue 1: restore the correct table_list (recommended) / tables_configs (deprecated) wording in zh Hive.
    • Issue 2: remove or clearly qualify the LLM QIANFAN / secret_key / oauth_path additions in en and zh.
  2. Recommended fixes - non-blocking:
    • Issue 3: drop the Jdbc source schema row in en and zh (a two-line change, best done in the same push).
    • Issue 4: align the zh Hive compress_codec wording.

CI is no longer a blocker on this head; merge state is BLOCKED only because a review approval is still required. No other reviewer has posted a review or comment on this PR.

Overall assessment: a high-value cleanup with strong verification discipline. The remaining items are small doc edits, but they are exactly the inaccuracies this PR exists to eliminate, so they are worth fixing before merge. No better alternative approach is needed. Happy to re-review quickly after the next push - thank you for the effort!

# Conflicts:
#	docs/en/connectors/source/Hive.md
#	docs/zh/connectors/source/Hive.md

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for syncing the branch with dev again, @zhangshenghang, and for keeping this docs sweep going. The new head (8fb14247fde) is a merge commit on top of 6c88c632, so the PR's own content is unchanged since my last review. I re-read the whole current diff from scratch and re-checked each claim against the source on this head. All three content problems from my last review are still present, so I am repeating them here with refreshed line numbers (they are carryovers, not new findings). This is static analysis only; nothing was built or executed locally.

What Problem Does This PR Solve?

  • User pain point: Several connector and transform docs describe options, formats and defaults that do not match the code, so users copy examples that fail or are silently ignored.
  • Fix approach: Compare docs against Options classes, factories and serializers, fix en and zh together, and register the missing transforms/encrypt sidebar entry.
  • One-sentence summary: A docs-only accuracy pass over 12 connectors and 4 transforms, en and zh.

1. Code Change Review

1.1 Core Logic Analysis

Docs only; no Java or runtime change. The claims I confirmed earlier (Kafka semantics and kafka.config, Hive formats, Kudu/StarRocks types, FtpFile, FakeSource, Paimon, Doris, Python ROUTE_TO_TABLE, Calcite, Embedding ZHIPU, sidebar) remain correct.

Runtime path for the Hive claim (Issue 1):

Hive source config
  -> HiveSourceFactory.optionRule()  optional(TABLE_CONFIGS, TABLE_LIST)
  -> MultipleTableHiveSourceConfig  [MultipleTableHiveSourceConfig.java:45-55]
       -> TABLE_LIST present  -> by-table-list path (current)
       -> else TABLE_CONFIGS  -> by-table-configs path
            annotated @Deprecated, comment "hive is structured, should use table_list"  [L66-67]

So table_list is the current key and tables_configs is the deprecated one.

Runtime path for the LLM claim (Issue 2):

LLM transform provider = QIANFAN
  -> option validation passes (docs now list it)
  -> LLMTransform provider switch  [LLMTransform.java:142-144]
       case QIANFAN: falls into default -> IllegalArgumentException("Unsupported model provider: QIANFAN")

QIANFAN is implemented only by the Embedding transform (EmbeddingTransform.java:149).

1.2 Compatibility Impact

Fully compatible (docs only); no incompatible-changes.md entry needed.

1.3 Performance / Side-Effect Analysis

None at runtime. The sidebar entry points to an existing page.

1.4 Error Handling and Logging

Not applicable. Formal issues:

Issue 1: zh Hive source page says the opposite of the code about table_list / tables_configs

  • Location: docs/zh/connectors/source/Hive.md:39-40 (options table), :60, :64, :66 (sections) vs :158 and :162 of the same file; code: MultipleTableHiveSourceConfig.java:46-49,66-67, HiveSourceFactory.java:53
  • Problem: The table, the table_name paragraph and both option sections say table_list is deprecated and tables_configs is recommended. The same page's Example 3 note (line 158) says the opposite and the example uses table_list (line 162), so the page contradicts itself, the en page, and the source.
  • Potential risk: Chinese-reading users are told to put new jobs on the deprecated key, which is exactly the inverted guidance this PR set out to remove.
  • Best improvement: Make table_list the recommended multi-table list, mark tables_configs as deprecated and kept for backward compatibility, and recommend table_list in the table_name paragraph; mirror the en page wording.
  • Severity: High
  • Raised by another reviewer: No

Issue 2: LLM transform docs advertise QIANFAN, secret_key and oauth_path, which LLMTransform rejects

  • Location: docs/en/transforms/llm.md:24-25,35,39,130-136; docs/zh/transforms/llm.md:22-23,33,37,125-131; code: LLMTransform.java:142-144
  • Problem: See the runtime path above; a user following the docs passes option validation and fails at job start. secret_key and oauth_path have no working use in the LLM transform.
  • Potential risk: Misleading guidance in a PR whose purpose is to remove it.
  • Best improvement: Recommended: list OPENAI, DOUBAO, DEEPSEEK, KIMIAI, MICROSOFT, ZHIPU, CUSTOM for LLM and drop QIANFAN, secret_key, oauth_path from both LLM pages (keep them on the Embedding pages where they are real). Alternative: keep them with an explicit "not supported by the LLM transform yet" note. The api_key tip can also mention DEEPSEEK, KIMIAI and ZHIPU, which read api_key in LLMTransform as well.
  • Severity: High
  • Raised by another reviewer: No

Issue 3: Jdbc source schema row documents an option the source path never reads

  • Location: docs/en/connectors/source/Jdbc.md:187, docs/zh/connectors/source/Jdbc.md:183; code: JdbcCatalogUtils.java:497-511 (extractCatalogConfig)
  • Problem: The source builds its catalog config from only url, username, password, compatible mode and the narrowing flags; schema is not put into it and the source does not read it elsewhere, so the schema comes from table_path. The sink path is different, so the sink row is fine.
  • Potential risk: Users set schema = "x" on a source expecting it to apply; it is silently ignored.
  • Best improvement: Remove the schema row from the source pages (en and zh); keep the sink one.
  • Severity: Medium
  • Raised by another reviewer: No

Issue 4: zh Hive source compress_codec row mentions CSV/JSON

  • Location: docs/zh/connectors/source/Hive.md:53
  • Problem: Says "text / CSV / JSON output" while Hive only supports text/parquet/orc and the PR removes CSV/JSON claims elsewhere on this page; the en row says text files.
  • Best improvement: Align with the en wording (text files only, lzo and none).
  • Severity: Low
  • Raised by another reviewer: No

2. Code Quality Assessment

2.1 Coding Standards

Tables and headings follow surrounding pages. Optional nit: the Kafka sink partition / partition_key_fields note reads better next to the option rows.

2.2 Test Coverage and Test Stability

Docs only; no tests changed, no stability rating needed. Build on the current head is SUCCESS.

2.3 Documentation Updates

This is the documentation update. Please keep en and zh in step (Issue 1 and 4 are zh only; Issues 2 and 3 apply to both).

3. Architectural Soundness

3.1 Elegance

Precise fix (docs aligned to source), apart from the items above.

3.2 Maintainability

A small CI check comparing each connector's optionRule() keys with its doc options table would catch this drift class (Issues 2 and 3) automatically; a follow-up idea only.

3.3 Extensibility

No extra concerns.

3.4 Historical-Version Compatibility

Not applicable.

4. Issue Summary

Number Issue Location Severity
1 zh Hive says table_list deprecated / tables_configs recommended (opposite of code) docs/zh/connectors/source/Hive.md:39-40,60,64-66 High
2 LLM docs advertise QIANFAN, secret_key, oauth_path; LLMTransform throws for QIANFAN docs/{en,zh}/transforms/llm.md, LLMTransform.java:142-144 High
3 Jdbc source schema row documents an ignored option docs/{en,zh}/connectors/source/Jdbc.md, JdbcCatalogUtils.java:497-511 Medium
4 zh Hive compress_codec mentions CSV/JSON docs/zh/connectors/source/Hive.md:53 Low

5. Merge Recommendation

Conclusion: Ready to merge after fixes

  1. Blockers - must be fixed:
    • Issue 1: restore the correct table_list (recommended) / tables_configs (deprecated) wording in zh Hive.
    • Issue 2: remove or clearly qualify the LLM QIANFAN / secret_key / oauth_path additions in en and zh.
  2. Recommended non-blocking: Issue 3 (drop the Jdbc source schema row, two lines), Issue 4.

CI: Build is SUCCESS on this head and GitHub reports the PR mergeable with no conflicts; BLOCKED is only the pending required approval. Being 1 commit behind dev is metadata only. My earlier change request stays in effect until Issues 1-2 are fixed; I only have read-level review controls, so a write-level maintainer does the final dismiss/approve. No other reviewer has commented.

Overall assessment: a high-value, carefully verified cleanup; the remaining items are small doc edits, but they are precisely the inaccuracies this PR exists to remove. Happy to re-review quickly after the next push. Thank you!

…upported LLM QIANFAN options and the unread Jdbc source schema row

- Mirror the en Hive source wording in zh: table_list is the current
  multi-table option and tables_configs is deprecated, matching
  MultipleTableHiveSourceConfig.
- Remove QIANFAN, secret_key and oauth_path from the LLM pages:
  LLMTransform.open() rejects the provider, so advertising it fails jobs
  at startup; the api_key tip now also names DEEPSEEK, KIMIAI and ZHIPU
  which read api_key at runtime.
- Remove the schema row from the Jdbc source pages: the source catalog
  config never reads it (schema comes from table_path); the sink row
  stays.
@zhangshenghang

Copy link
Copy Markdown
Member Author

All three findings are addressed in 4602c34:

  1. zh Hive source page (High): the option rows, the table_name paragraph and both section bodies now mirror the en wording — table_list is the current multi-table option (takes precedence when both are set) and tables_configs is deprecated; the page no longer contradicts its own Example 3 or MultipleTableHiveSourceConfig.
  2. LLM QIANFAN family (High): QIANFAN, secret_key and oauth_path are removed from both LLM pages (provider list, table rows, tip and sections), matching LLMTransform.open()'s unsupported-provider branch. The api_key tip now also names DEEPSEEK, KIMIAI and ZHIPU, which read api_key at runtime, per your suggestion.
  3. Jdbc source schema row (Medium): removed from both source pages (JdbcCatalogUtils.extractCatalogConfig never reads it; schema comes from table_path). The sink row is kept.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the quick turnaround, and for the clear reply on 4602c34. I re-reviewed the whole head again (not just the delta since my last reviewed commit 8fb1424). Your last push fixes the three items I raised before: the zh Hive source page now treats table_list as current and tables_configs as deprecated, the LLM pages no longer advertise QIANFAN, secret_key or oauth_path, and the Jdbc source schema row is gone in both languages. One small low-severity leftover from my previous round (Issue 1 below) is still open; it is not a blocker. Everything is in one pass here. This is a source-level review only (no docs build or tests run locally).

What Problem Does This PR Solve?

  • User pain point: Connector and transform docs describe options, formats and defaults that the code does not honor (Kafka semantics default, flat kafka.* SASL keys, Hive CSV/JSON claims, wrong Kudu/StarRocks types, and so on). Users copy these examples and get failing or silently misbehaving jobs.
  • Fix approach: Compare each page with the Options classes, factories, type mappers and serializers, and correct en and zh together; register the missing transforms/encrypt page in the sidebar.
  • One-sentence summary: A docs-only accuracy pass over 12 connectors and 4 transforms, en and zh.
  • Before / after example: Before, the LLM page told users to set model_provider = QIANFAN with secret_key / oauth_path, which passes option validation and then fails at job start. After, the page lists only providers that LLMTransform implements.

1. Code Change Review

1.1 Core Logic Analysis

No Java or runtime code changes; the files are under docs/en, docs/zh and docs/sidebars.js. The normal user path is not touched at runtime; only what users read changes.

Delta since 8fb1424 (5 files): docs/en/transforms/llm.md, docs/zh/transforms/llm.md, docs/en/connectors/source/Jdbc.md, docs/zh/connectors/source/Jdbc.md, docs/zh/connectors/source/Hive.md.

Previous issues, re-checked against the head:

  • Previous Issue 1 (zh Hive table_list / tables_configs inverted): fixed. The options table, the table_name paragraph and both option sections now match the en page and MultipleTableHiveSourceConfig (table_list current, tables_configs deprecated).
  • Previous Issue 2 (LLM QIANFAN, secret_key, oauth_path): fixed in both languages; no remaining occurrences in either LLM page. The api_key tip now also names DEEPSEEK, KIMIAI and ZHIPU, which matches how LLMTransform reads api_key.
  • Previous Issue 3 (Jdbc source schema row): fixed; the source rows are removed and the sink rows are kept.
  • Previous Issue 4 (zh Hive compress_codec row mentions CSV/JSON): not fixed yet, see Issue 1 below.

The claims I confirmed in the earlier passes (Kafka SEMANTICS default NON, only kafka.config read, partition plus partition_key_fields rejected, and so on) are unchanged in this delta and still hold.

1.2 Compatibility Impact

Fully compatible (docs only). No options, defaults, serialization or history are affected, and no incompatible-changes.md entry is needed.

1.3 Performance / Side-Effect Analysis

None at runtime. The sidebar entry points to an existing page.

1.4 Error Handling and Logging

Not applicable to a docs PR. Formal issue:

Issue 1: zh Hive source compress_codec row still mentions CSV / JSON

  • Location: docs/zh/connectors/source/Hive.md:53
  • Problem: The row describes the codec as applying to "text / CSV / JSON" output. Hive only supports text, parquet and orc, and this PR removes the CSV/JSON claims elsewhere on the page. The en row (docs/en/connectors/source/Hive.md:59) says "Compression codec for text files", and the zh compress_codec section further down already lists only txt, orc and parquet.
  • Potential risk: A small inconsistency between the zh table and the zh section, and between zh and en, that reintroduces the CSV/JSON impression this PR set out to remove.
  • Best improvement: Reword the row to say it applies to text files only, supports lzo and none, and that Parquet / ORC auto-detect compression, mirroring the en wording.
  • Severity: Low
  • Raised by another reviewer: No

2. Code Quality Assessment

2.1 Coding Standards

Tables and headings follow the surrounding pages. Optional nit carried over: the Kafka sink partition / partition_key_fields note reads better next to the option rows.

2.2 Test Coverage and Test Stability

Docs only; no tests changed, so no stability rating applies (Stable by default). The fork Build run on this head completed with success.

2.3 Documentation Updates

This is the documentation update. en and zh are now consistent for the items reviewed, except Issue 1 (zh only).

3. Architectural Soundness

3.1 Elegance

Precise fix (docs aligned to source).

3.2 Maintainability

Follow-up idea only: a small CI check comparing each connector's optionRule() keys with its doc options table would catch this class of drift (for example the LLM and Jdbc items) automatically.

3.3 Extensibility

No extra concerns.

3.4 Historical-Version Compatibility

Not applicable.

4. Issue Summary

Number Issue Location Severity
1 zh Hive compress_codec row still mentions CSV / JSON docs/zh/connectors/source/Hive.md:53 Low

5. Merge Recommendation

Conclusion: Ready to merge

  1. Blockers - must be fixed: None.
  2. Recommended fixes - non-blocking: Issue 1, a one-line wording change in the zh Hive table row. Happy for it to be folded into this PR or a follow-up.

CI / merge state: the fork Build run for this head (run 39928560471 in the contributor's fork) completed with success. On apache/seatunnel the only check reported at the time of this review is the PR signal pointer, still queued, and the PR shows BLOCKED, which is the required approval rather than a failing check. I am not asking for a sync; being behind dev is metadata only.

My earlier change request was about the two High items, which are now fixed, so it no longer reflects the state of the head. I only have read-level review controls, so a write-level maintainer will need to dismiss it and do the final approval.

Overall assessment: a high-value, carefully verified cleanup that is now accurate on every item I could find. Thanks again for the quick and thorough fixes!

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick update on the CI fact cited in my previous review: the Build check on head 4602c3485 is now green. My previous review found no source-level blocker and CI was the only remaining gate, so I am updating my conclusion to approve. My earlier change request was about items that are fixed on this head, so it no longer reflects the current state; a maintainer with write access can dismiss it. The formal merge still needs a committer with write access. Thanks again for the contribution!

davidzollo
davidzollo previously approved these changes Oct 24, 2026

@davidzollo davidzollo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick turnaround and the clear reply. The earlier change request items are fixed on this head and Build is green, so that request no longer applies. Approving and queueing for merge.

@davidzollo
davidzollo added this pull request to the merge queue Oct 24, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 24, 2026
@DanielLeens

Copy link
Copy Markdown
Contributor

Thanks @davidzollo for the approval and for queueing this. One practical note: GitHub currently reports this PR as having merge conflicts with dev (the branch is 11 commits behind), so it cannot enter the merge queue as is. @zhangshenghang, could you please sync with the latest dev and resolve the conflicts (they should be limited to docs files)? Nothing else is pending from my side: my earlier requested changes are fixed on head 4602c3485 and Build is green. Once the new head is pushed I will quickly re-check that the merge did not alter the verified doc content.

# Conflicts:
#	docs/en/connectors/sink/Doris.md
#	docs/en/connectors/sink/Hive.md
#	docs/en/connectors/sink/Kafka.md
#	docs/en/connectors/sink/MongoDB.md
#	docs/en/connectors/source/Hive.md
#	docs/en/connectors/source/Kafka.md
#	docs/zh/connectors/sink/Doris.md
#	docs/zh/connectors/sink/HdfsFile.md
#	docs/zh/connectors/sink/Hive.md
#	docs/zh/connectors/sink/Kafka.md
#	docs/zh/connectors/sink/MongoDB.md
#	docs/zh/connectors/source/Hive.md
#	docs/zh/connectors/source/Kafka.md

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick turnaround, @zhangshenghang. The head was updated only by a merge of dev (173566b2 on top of 4602c348, which I approved). I re-verified the full diff and the touched call chains against the new head instead of relying on the earlier pass. This is a static source review; nothing was built or executed locally.

What Problem Does This PR Solve?

  • User pain point: connector and transform pages describe options, formats and defaults that the code does not honor (Kafka semantics default, flat kafka.* SASL keys, Hive CSV/JSON claims, wrong Kudu/StarRocks types, LLM providers that do not exist). Users copy these examples and get failing or silently misbehaving jobs.
  • Fix approach: compare each page with the Options classes, factories and serializers, and correct en and zh together; register the missing transforms/encrypt page in the sidebar.
  • One sentence: a docs-only accuracy pass over 12 connector pages and 4 transform pages, en and zh.

1. Code Change Review

1.1 Core Logic Analysis

There is no Java or runtime change: 28 files under docs/en, docs/zh and docs/sidebars.js. The normal runtime path is not touched; only what users read changes.

Re-checks against this head:

  • Hive: MultipleTableHiveSourceConfig (dev) checks TABLE_LIST first and then TABLE_CONFIGS, and marks the tables_configs path @Deprecated. The en and zh Hive source pages now say exactly this. The zh compress_codec row, which was my only open Low item on the previous head, is already correct on current dev ("text tables only, lzo and none, Parquet/ORC auto-detect compression") and is no longer part of this PR's diff, so that item is closed.
  • LLM: no QIANFAN, secret_key or oauth_path remains in either language.
  • Jdbc source: the unread schema row is gone in both languages; the sink rows are kept.
  • The remaining claims I verified earlier (Kafka SEMANTICS default, kafka.config as the only Kafka pass-through, partition plus partition_key_fields rejected, Kudu and StarRocks types) concern files this merge did not touch.

1.2 Compatibility Impact

Fully compatible. Documentation only: no option, default, serialization or checkpoint behavior changes, and no incompatible-changes.md entry is needed.

1.3 Performance / Side-Effect Analysis

None at runtime. The new sidebar entry points to an existing page.

1.4 Error Handling and Logging

Not applicable to a docs PR. No issue found on this head.

2. Code Quality Assessment

2.1 Coding Standards

Tables and headings follow the neighbouring pages. No new Java, so the core-method comment rule is not triggered.

2.2 Test Coverage and Test Stability

Docs only; no tests changed, so no stability rating applies.

2.3 Documentation Updates

This is the documentation update. en and zh are paired for every item I checked.

3. Architectural Soundness

3.1 Elegance

Precise fix (docs aligned to source).

3.2 Maintainability

Follow-up idea only: a small CI check comparing each connector's optionRule() keys with its documented options table would catch this class of drift automatically.

3.3 Extensibility

No extra concerns.

3.4 Historical-Version Compatibility

Not applicable.

4. Issue Summary

Number Issue Location Severity
- No open issue on this head - -

5. Merge Recommendation

Conclusion: Ready to merge

  1. Blockers (must fix): none.
  2. Recommended fixes (non-blocking): none.

CI on the current head: the apache-side Build check and PR signal are green. The PR is BLOCKED only because it waits for a write-level approval, which is already recorded; being behind dev is metadata, so I am not asking for a sync. My earlier change request no longer reflects the state of the PR; a maintainer with write access can finalize the merge. Thanks again for the careful, source-verified cleanup!

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for keeping the earlier Hive/LLM/JDBC corrections intact. Sorry for missing the FTP seek boundary and accepting the overly strong Hive checkpoint wording in my previous review. These are carryover omissions, not newly introduced problems in this update. I re-reviewed all 28 changed files at 173566b2040ff09dd44816a8f9c7cd7513df6469, followed their runtime consumers, and need to narrow my earlier approval assessment as detailed below.

What problem this PR solves

  • User pain: Connector/transform docs contain incorrect option defaults, type mappings, protocol guidance and provider descriptions.
  • Fix approach: Align bilingual documentation with existing implementations, correct Hive table-list precedence, remove unsupported LLM provider guidance, expose existing options and add the Encrypt transform to navigation.
  • One-line summary: Make the documented job configuration match the real connector/transform behavior.

Example: Hive { table_list = [...] } is the current multi-table path. The legacy tables_configs remains supported as a fallback, and the corrected pages no longer advise new users to prefer it.

1. Code-change review

1.1 Core logic analysis

Full scope: +180/-79 in 28 docs/navigation files; no product/test/dependency changes. I read every hunk, including the added Chinese SQL Server CDC example and Hive sink description.

// Before: the documentation called table_list deprecated.
Hive { tables_configs = [...] }
// After: matches MultipleTableHiveSourceConfig constructor precedence.
Hive { table_list = [...] }

The Kafka introduction now correctly describes semantics=NON as the default and requires explicit EXACTLY_ONCE plus checkpoints for that guarantee. Kudu INT8/INT16 map to TINYINT/SMALLINT, as the mapper actually returns BYTE/SHORT types. Other checked additions include sink replica options, sink schema selection, Doris single-table requirements, embedding ZHIPU/batch options, LLM provider/API-key distinctions, Python's supported error policies and the Calcite JSON UDF.

Complete relevant execution chains:

Hive source -> MultipleTableHiveSourceConfig():44-55
  -> table_list if present -> otherwise legacy tables_configs -> per-table discovery/read

Job -> FtpFileSource -> MultipleTableFTPFileSourceConfig -> shared file source
  -> SeaTunnelFTPFileSystem.open():303-331
      -> commons-net retrieveFileStream -> Hadoop FTPInputStream
  -> Parquet: ParquetReadStrategy -> FileSystemInputFile.newStream():59-60
      -> HadoopStreams.wrap(the same FSDataInputStream)
      -> Parquet footer read -> seek -> FTPInputStream.seek throws IOException
  -> ORC: OrcReadStrategy.checkFileType():210-240
      -> open stream -> seek(size - readSize) -> same unsupported seek

Hive sink -> staged transaction files -> HiveSinkAggregatedCommitter.commit():91-120
  -> FileSinkAggregatedCommitter.commit():79-118
      -> rename/append files one by one -> failed commit info for retry
  -> add Hive partition metadata after successful file commit
  -> abort/rollback path is distinct; this is not one atomic publication of every file

Kafka -> KafkaSinkSerializer.create():96-117
  -> reject NATIVE plus header-field selection
  -> for ordinary formats reject simultaneous partition and partition_key_fields
  -> producer/checkpoint semantics remain unchanged by these docs

LLM -> provider switch in LLMTransform.open():80-145
  -> supported provider implementations -> required/runtime-read API key
  -> QIANFAN/default -> unsupported provider error
Python -> PythonTransformConfig.of():190-196 -> accepts FAIL/SKIP only
Calcite GetJsonObjectFunction -> JsonFunction.getJsonObject -> STRING/null result

Key findings:

  1. The earlier Hive precedence, unsupported LLM QIANFAN-family instructions, and JDBC-source schema-row blockers are resolved and remain resolved.
  2. FileSystemInputFile wraps the existing filesystem stream; it does not buffer the whole FTP file into a seekable replacement.
  3. The newly documented FTP Parquet/ORC support therefore fails on the real seek requirement, even though the shared factory exposes those formats.
  4. Hive's checkpoint commit protocol is not an atomic cross-file read-visibility transaction or a guarantee that every failure physically rolls back every published file.
  5. Several rows now duplicate entries already present after the upstream merge; they are presentation issues only.

I agree with @davidzollo's earlier assessment that the three requested fixes were completed. That review/merge intention was on 4602c3485 and is now shown as DISMISSED. The source evidence for Issues 4 and 6 means I cannot carry the prior approval conclusion forward unchanged to this head.

1.2 Compatibility impact

Fully compatible product implementation: this is documentation/navigation only. No API/SPI, option name/default, wire format, checkpoint serialization or stored job change is implemented. Removing incorrect FTP-to-SFTP guidance does not remove working code; the dedicated SftpFile connector remains the SSH path. Avoid presenting unavailable seek-based FTP formats or database-style atomicity as existing compatibility guarantees.

1.3 Performance / side effects

No runtime CPU, memory, GC, network, lock, retry or resource change is introduced. Users following the FTP capability claim hit an error instead of a supported read. Hive file publication/retries and cleanup remain those of the existing connector, including intermediate visibility across separate file operations. The docs do not implement new transactional isolation.

1.4 Error handling and logging

The source-supported LLM/Python rejection boundaries and Kafka serialization errors are useful to document. The unsupported FTP seek is surfaced as a file/reader error; it is not a transient authentication failure or a reason to repeatedly retry the same configuration.

Issue 4: Do not advertise direct FTP Parquet/ORC reads as supported

  • Location: docs/en/connectors/source/FtpFile.md:29-30, corresponding ZH format checklist.
  • Problem: SeaTunnelFTPFileSystem.open():323 wraps Hadoop FTPInputStream, whose seek implementation always throws IOException("Seek not supported"). ORC explicitly seeks at OrcReadStrategy.java:217. Parquet's stream adapter delegates to the same stream, and its footer reader seeks to the file tail; the declared Parquet 1.12.3 source also contains those footer seeks. No download-to-seekable-file fallback exists on this path.
  • Risk: Users selecting the newly checked formats get a normal-path startup/read failure. Merely allowing a shared format enum does not establish transport support.
  • Best fix: Remove the new support checkmarks or clearly mark direct FTP reading of these formats unsupported. Suggest staging to a filesystem with seek support, or a separately verified suitable connector. Implementing seek/buffering in the filesystem would be a separate code PR with real read/recovery coverage, not necessary for this documentation fix.
  • Severity: High, blocking. Raised by another reviewer: No. Carryover omission acknowledged above.

Issue 6: Narrow the Hive sink all-or-nothing checkpoint claim

  • Location: docs/zh/connectors/sink/Hive.md:9.
  • Problem: The new description says every checkpoint commits or rolls back as a whole. The committer renames/appends multiple files sequentially, then registers partition metadata. A failure can occur after some files are published; failed commits are tracked/retried, and rollback is a separate path. The source does not implement atomic visibility across all files or a Hive ACID transaction for the checkpoint.
  • Risk: Readers or operators may assume database-style isolation/rollback when consuming partially published files or planning recovery.
  • Best fix: State that files are staged and finalized through the checkpoint commit protocol. Keep the exactly-once/retry boundary precise, and explicitly avoid promising atomic cross-file visibility or automatic whole-checkpoint physical rollback. Align the English wording if adding the same explanation there.
  • Severity: Medium, required documentation accuracy. Raised by another reviewer: No. Carryover omission acknowledged above.

Issue 5: Deduplicate the JDBC and StarRocks option rows

  • Location: EN/ZH connectors/sink/Jdbc.md:175-178; EN/ZH connectors/sink/StarRocks.md:58-61.
  • Problem/risk: The current diff adds a second schema row and a second multi_table_sink_replica row where those rows already exist after the merge. Defaults agree, so there is no runtime impact.
  • Best fix: Keep one row per key, retaining the more complete description and the new explanatory section. The English tip in the Chinese LLM page can also be translated while editing.
  • Severity: Low, non-blocking. Raised by another reviewer: No.

2. Code-quality assessment

2.1 Code conventions

The documentation/navigation scope is focused. Existing ASF/source conventions are unaffected, and no new production method/field comment audit applies. The target-relative whitespace check is clean. The duplicate rows in Issue 5 are easy cleanup.

2.2 Test coverage and stability

No UT/E2E code is changed; test stability grading is not applicable. CI is green for this head, but it does not establish an FTP Parquet/ORC runtime pass or compile every embedded job example. I did not run local tests, builds, services or jobs. The FTP finding comes from the complete stream/reader call chain and the exact dependency source; it does not rely on an invented execution result.

2.3 Documentation

Both languages cover the main corrections. Prior requested corrections remain complete. The removed misleading SFTP recipe should stay removed. The JDBC SQL Server example uses the generated-table placeholder path, while source schema remains derived from table metadata. Confirmed path/default changes include Hive table-list precedence, Kafka NON semantics, Kudu small integer mappings, embedding batch fallback, LLM provider rejection and Calcite null handling. Address the unsupported format checklist and stronger Hive transaction claim above.

3. Architectural soundness

3.1 Solution quality

A focused documentation correction. The remaining fix should narrow claims to the existing implementation rather than expand a docs PR into filesystem or transaction engineering.

3.2 Maintainability

Document transport capability independently of shared format selection. Keep checkpoint commit protocol distinct from storage/database isolation.

3.3 Extensibility

Future FTP seek/buffering support can legitimately expand the capability table after real reader tests. It should not be inferred from a shared enum alone.

3.4 Historical compatibility

No stored-state or configuration migration is implemented. Existing supported jobs retain behavior; accurate docs prevent new unsupported configurations.

4. Findings summary

Number Finding Location Severity
4 FTP Parquet/ORC support claim conflicts with nonseekable stream FtpFile.md:29-30 EN / ZH High
6 Hive checkpoint wording overstates atomic commit/rollback ZH Hive.md:9 Medium
5 Duplicate JDBC schema / StarRocks replica rows EN/ZH sink option tables Low

Previous Issues 1-3 are closed; numbering is retained rather than reusing their IDs.

5. Merge conclusion

Conclusion: Merge after fixes

  1. Blocking items: Issue 4 must remove the unsupported format claim; Issue 6 must narrow the Hive transaction wording. These are documentation corrections, not requests for unrelated product changes.
  2. Non-blocking recommendations: Issue 5 removes duplicate rows and improves language consistency.

The earlier requested fixes are good, and the remaining edits can be small. The best option is documenting the current transport/commit limitations; adding a seek-capable FTP implementation or atomic multi-file publication is a larger alternative requiring its own design/tests. Current-head CI success is retained as evidence, but cannot clear unsupported operational claims. A write-capable maintainer still supplies the effective final approval.

Local evidence: fetched/checked out the exact head; read all 28 target-relative files; traced the FTP stream through both format readers, Hive commit ordering and the documented option/provider consumers; inspected the declared Parquet 1.12.3 source JAR footer seeks. No runtime validation was performed. Daniel has READ permission and is posting a technical COMMENT; the previous approval on another head must not be treated as approval of these remaining claims.

Current-head Build is success. Compare: dev, diverged, ahead 6 / behind 3, conflict=False. No unrelated CI failure warrants a sync instruction; drift is recorded only.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. I re-checked the latest head against the source: every finding from my earlier rounds is resolved, no blocking issue remains, and CI is green on this head. The change is complete and accurate, and it is ready to merge. Thanks a lot for the careful work!

A note for the committers: my account has read-only review permissions, so this approval does not satisfy the branch-protection requirement. Could a committer with write access please give the final approval and merge this PR? (Review is by code and documentation reading only; nothing was executed locally.)

davidzollo
davidzollo previously approved these changes Oct 25, 2026

@davidzollo davidzollo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The docs changes were re-verified against the source on this head, the earlier review findings are resolved, and CI is green. Approving.

# Conflicts:
#	docs/en/connectors/source/FtpFile.md
#	docs/en/connectors/source/Hive.md
#	docs/en/transforms/llm.md
#	docs/zh/connectors/source/FtpFile.md
#	docs/zh/connectors/source/Hive.md
#	docs/zh/transforms/llm.md

@DanielLeens DanielLeens left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updated head. I re-read the complete twenty-five-file diff and retraced the actual connector/transform consumers. Issues 4 and 6 remain in the current text, with the same evidence below; no new numbered source issue is added. I also need to correct the broader approval wording in the earlier Daniel records: a green Build does not resolve these two documentation claims. Sorry for the conflicting status wording.

What problem this PR solves

  • User pain: Connector/transform docs contain incorrect option defaults, type mappings, protocol guidance and provider descriptions.
  • Fix approach: Align bilingual Kafka defaults, Kudu type mappings, JDBC/Doris/transform options and SQL-function examples with existing implementations, and add the Encrypt transform to navigation. Earlier Hive-source/LLM corrections are now part of the upstream context rather than remaining target-relative hunks.
  • One-line summary: Make the documented job configuration match the real connector/transform behavior.

Example: Kafka uses semantics=NON by default; an operator who needs exactly-once must explicitly choose EXACTLY_ONCE and checkpointing rather than rely on the old introductory claim.

1. Code-change review

1.1 Core logic analysis

Full scope at 0fb4548ae483df3d34de2ebfd5629c63a8ade317: +145/-17 in 25 docs/navigation files; no product/test/dependency changes. I read every hunk, including the added Chinese SQL Server CDC example and Hive sink description.

Before / after in the remaining diff:

Before: Kafka introduction claims default 2PC/exactly-once.
After: default NON; explicit EXACTLY_ONCE plus checkpointing is required.
Before: Kudu INT8/INT16/INT32 all shown as INT.
After: TINYINT/SMALLINT/INT respectively.

The Kafka introduction now correctly describes semantics=NON as the default and requires explicit EXACTLY_ONCE plus checkpoints for that guarantee. Kudu INT8/INT16 map to TINYINT/SMALLINT, as the mapper actually returns BYTE/SHORT types. Other checked additions include sink replica options, sink schema selection, Doris single-table requirements, embedding ZHIPU/batch options, LLM provider/API-key distinctions, Python's supported error policies and the Calcite JSON UDF.

Complete relevant execution chains:

Hive source -> MultipleTableHiveSourceConfig():44-55
  -> table_list if present -> otherwise legacy tables_configs -> per-table discovery/read

Job -> FtpFileSource -> MultipleTableFTPFileSourceConfig -> shared file source
  -> SeaTunnelFTPFileSystem.open():303-331
      -> commons-net retrieveFileStream -> Hadoop FTPInputStream
  -> Parquet: ParquetReadStrategy -> FileSystemInputFile.newStream():59-60
      -> HadoopStreams.wrap(the same FSDataInputStream)
      -> Parquet footer read -> seek -> FTPInputStream.seek throws IOException
  -> ORC: OrcReadStrategy.checkFileType():210-240
      -> open stream -> seek(size - readSize) -> same unsupported seek

Hive sink -> staged transaction files -> HiveSinkAggregatedCommitter.commit():91-120
  -> FileSinkAggregatedCommitter.commit():79-118
      -> rename/append files one by one -> failed commit info for retry
  -> add Hive partition metadata after successful file commit
  -> abort/rollback path is distinct; this is not one atomic publication of every file

Kafka -> KafkaSinkSerializer.create():96-117
  -> reject NATIVE plus header-field selection
  -> for ordinary formats reject simultaneous partition and partition_key_fields
  -> producer/checkpoint semantics remain unchanged by these docs

LLM -> provider switch in LLMTransform.open():80-145
  -> supported provider implementations -> required/runtime-read API key
  -> QIANFAN/default -> unsupported provider error
Python -> PythonTransformConfig.of():190-196 -> accepts FAIL/SKIP only
Calcite GetJsonObjectFunction -> JsonFunction.getJsonObject -> STRING/null result

Key findings:

  1. The earlier Hive precedence, unsupported LLM QIANFAN-family instructions, and JDBC-source schema-row blockers are resolved and remain resolved.
  2. FileSystemInputFile wraps the existing filesystem stream; it does not buffer the whole FTP file into a seekable replacement.
  3. The newly documented FTP Parquet/ORC support therefore fails on the real seek requirement, even though the shared factory exposes those formats.
  4. Hive's checkpoint commit protocol is not an atomic cross-file read-visibility transaction or a guarantee that every failure physically rolls back every published file.
  5. Several rows now duplicate entries already present after the upstream merge; they are presentation issues only.

The earlier @davidzollo reviews on 4602c34 and 173566b express merge intent, and both are now shown as DISMISSED. I agree that the prior Hive/LLM/JDBC corrections are retained. I respectfully cannot carry the broader all-findings-resolved conclusion forward: the FTP stream still delegates unsupported seeks and the Hive committer still publishes files sequentially, so Issues 4 and 6 remain. These are the same existing findings, not additional requests introduced by this recheck.

1.2 Compatibility impact

Fully compatible product implementation: this is documentation/navigation only. No API/SPI, option name/default, wire format, checkpoint serialization or stored job change is implemented. Removing incorrect FTP-to-SFTP guidance does not remove working code; the dedicated SftpFile connector remains the SSH path. Avoid presenting unavailable seek-based FTP formats or database-style atomicity as existing compatibility guarantees.

1.3 Performance / side effects

No runtime CPU, memory, GC, network, lock, retry or resource change is introduced. Users following the FTP capability claim hit an error instead of a supported read. Hive file publication/retries and cleanup remain those of the existing connector, including intermediate visibility across separate file operations. The docs do not implement new transactional isolation.

1.4 Error handling and logging

The source-supported LLM/Python rejection boundaries and Kafka serialization errors are useful to document. The unsupported FTP seek is surfaced as a file/reader error; it is not a transient authentication failure or a reason to repeatedly retry the same configuration.

Issue 4: Do not advertise direct FTP Parquet/ORC reads as supported

  • Location: docs/en/connectors/source/FtpFile.md:29-30, corresponding ZH format checklist.
  • Problem: SeaTunnelFTPFileSystem.open():323 wraps Hadoop FTPInputStream, whose seek implementation always throws IOException("Seek not supported"). ORC explicitly seeks at OrcReadStrategy.java:217. Parquet's stream adapter delegates to the same stream, and its footer reader seeks to the file tail; the declared Parquet 1.12.3 source also contains those footer seeks. No download-to-seekable-file fallback exists on this path.
  • Risk: Users selecting the newly checked formats get a normal-path startup/read failure. Merely allowing a shared format enum does not establish transport support.
  • Best fix: Remove the new support checkmarks or clearly mark direct FTP reading of these formats unsupported. Suggest staging to a filesystem with seek support, or a separately verified suitable connector. Implementing seek/buffering in the filesystem would be a separate code PR with real read/recovery coverage, not necessary for this documentation fix.
  • Severity: High, blocking. Raised by another reviewer: No. Carryover omission acknowledged above.

Issue 6: Narrow the Hive sink all-or-nothing checkpoint claim

  • Location: docs/zh/connectors/sink/Hive.md:9.
  • Problem: The new description says every checkpoint commits or rolls back as a whole. The committer renames/appends multiple files sequentially, then registers partition metadata. A failure can occur after some files are published; failed commits are tracked/retried, and rollback is a separate path. The source does not implement atomic visibility across all files or a Hive ACID transaction for the checkpoint.
  • Risk: Readers or operators may assume database-style isolation/rollback when consuming partially published files or planning recovery.
  • Best fix: State that files are staged and finalized through the checkpoint commit protocol. Keep the exactly-once/retry boundary precise, and explicitly avoid promising atomic cross-file visibility or automatic whole-checkpoint physical rollback. Align the English wording if adding the same explanation there.
  • Severity: Medium, required documentation accuracy. Raised by another reviewer: No. Carryover omission acknowledged above.

Issue 5: Deduplicate the JDBC and StarRocks option rows

  • Location: EN/ZH connectors/sink/Jdbc.md:175-178; EN/ZH connectors/sink/StarRocks.md:58-61.
  • Problem/risk: The current diff adds a second schema row and a second multi_table_sink_replica row where those rows already exist after the merge. Defaults agree, so there is no runtime impact.
  • Best fix: Keep one row per key, retaining the more complete description and the new explanatory section. The English tip in the Chinese LLM page can also be translated while editing.
  • Severity: Low, non-blocking. Raised by another reviewer: No.

2. Code-quality assessment

2.1 Code conventions

The documentation/navigation scope is focused. Existing ASF/source conventions are unaffected, and no new production method/field comment audit applies. The target-relative whitespace check is clean. The duplicate rows in Issue 5 are easy cleanup.

2.2 Test coverage and stability

No UT/E2E code is changed; test stability grading is not applicable. CI is green for this head, but it does not establish an FTP Parquet/ORC runtime pass or compile every embedded job example. I did not run local tests, builds, services or jobs. The FTP finding comes from the complete stream/reader call chain and the exact dependency source; it does not rely on an invented execution result.

2.3 Documentation

Both languages cover the main corrections. Prior requested corrections remain complete. The removed misleading SFTP recipe should stay removed. The JDBC SQL Server example uses the generated-table placeholder path, while source schema remains derived from table metadata. Confirmed path/default changes include Hive table-list precedence, Kafka NON semantics, Kudu small integer mappings, embedding batch fallback, LLM provider rejection and Calcite null handling. Address the unsupported format checklist and stronger Hive transaction claim above.

3. Architectural soundness

3.1 Solution quality

A focused documentation correction. The remaining fix should narrow claims to the existing implementation rather than expand a docs PR into filesystem or transaction engineering.

3.2 Maintainability

Document transport capability independently of shared format selection. Keep checkpoint commit protocol distinct from storage/database isolation.

3.3 Extensibility

Future FTP seek/buffering support can legitimately expand the capability table after real reader tests. It should not be inferred from a shared enum alone.

3.4 Historical compatibility

No stored-state or configuration migration is implemented. Existing supported jobs retain behavior; accurate docs prevent new unsupported configurations.

4. Findings summary

Number Finding Location Severity
4 FTP Parquet/ORC support claim conflicts with nonseekable stream FtpFile.md:29-30 EN / ZH High
6 Hive checkpoint wording overstates atomic commit/rollback ZH Hive.md:9 Medium
5 Duplicate JDBC schema / StarRocks replica rows EN/ZH sink option tables Low

Previous Issues 1-3 are closed; numbering is retained rather than reusing their IDs.

5. Merge conclusion

Conclusion: Can merge after fixes

  1. Blocking items: Issue 4 must remove the unsupported format claim; Issue 6 must narrow the Hive transaction wording. These are documentation corrections, not requests for unrelated product changes.
  2. Non-blocking recommendations: Issue 5 removes duplicate rows and improves language consistency.

The earlier requested fixes are good, and the remaining edits can be small. The best option is documenting the current transport/commit limitations; adding a seek-capable FTP implementation or atomic multi-file publication is a larger alternative requiring its own design/tests. Current-head CI success is retained as evidence, but cannot clear unsupported operational claims. A write-capable maintainer still supplies the effective final approval.

Local evidence: fetched/checked out the exact head; read all 25 target-relative files; traced the FTP stream through both format readers, Hive commit ordering and the documented option/provider consumers; inspected the declared Parquet 1.12.3 source JAR footer seeks. No runtime validation was performed. Daniel has READ permission and is posting a technical COMMENT; the previous approval on another head must not be treated as approval of these remaining claims.

Current-head fork Build 40204837623 is success. Compare against dev: ahead, ahead 7 / behind 0, conflict=False. No unrelated CI failure warrants a sync instruction; drift is recorded independently.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update! I re-reviewed the complete current diff and its runtime references. Several earlier changes have dropped out of the effective diff; the remaining Hive accuracy blocker and StarRocks duplication are carried forward below with their original finding numbers.

What problem does this PR solve?

User pain: connector/transform reference pages omit settings or overstate delivery behavior.

Fix: update the current 16-file documentation delta against the implementation.

In one sentence: describe existing capabilities without promising stronger storage transactions. Example: Hive finalizes staged files during checkpoint commit, but publishing two files is not a single atomic Hive transaction.

1. Code changes

1.1 Core logic

Complete runtime path:

Kafka config -> serializer rejects partition plus partition_key_fields; checkpoint-enabled transactional writer commits
JDBC table config -> TablePlaceholderProcessor -> sink factory -> per-table replica writer
Doris source -> outer database/table or table_list -> split readers
Embedding -> ModelTransformConfig process_batch_size (fallback inference_batch_size) -> provider model
Calcite -> GetJsonObjectFunction.eval (:40-44) -> null short-circuit / JsonFunction
Python -> OptionRule accepts enum -> PythonTransformConfig rejects unsupported error policy
HiveSink.createAggregatedCommitter (:279) -> HiveSinkAggregatedCommitter.commit (:90)
 -> FileSinkAggregatedCommitter.commit (:79): sequential per-file rename/append
 -> partition metadata publication; failed commits returned for retry; abort is separate

Key findings and correctness:

  • All 16 target-relative files were re-read; runtime is unchanged because this PR edits documentation only. Kafka checkpoint/transaction wording, partition exclusivity, JSON null behavior, batching alias, embedding ZHIPU support and SQL Server table placeholders match the responsible paths.
  • Earlier FTP support additions and duplicate JDBC schema rows are no longer in the current diff; their old findings are not carried as current PR blockers. This does not claim that an FTP runtime capability was implemented.
  • The Hive whole-checkpoint atomicity claim remains unchanged from my previous finding (Issue 6). The implementation publishes files sequentially and does not supply a single Hive ACID transaction.
  • StarRocks still has duplicate replica rows (Issue 5); the more detailed existing row should be retained. No new numbered source finding is introduced.

Before:

| password                                  | String  | No       | -                            |
| query                                     | String  | No       | -                            |
| compatible_mode                           | String  | No       | -                            |
| dialect                                   | String  | No       | -                            | 
| database                                  | String  | No       | -                            |
| table                                     | String  | No       | -                            |
| schema                                    | String  | No       | -                            |
| tablePrefix                               | String  | No       | -                            |
| tableSuffix                               | String  | No       | -                            |
| primary_keys                              | Array   | No       | -                            |
| connection_check_timeout_sec              | Int     | No       | 30                           |
| connect_timeout_ms                        | Int     | No       | 86400000                     |
| socket_timeout_ms                         | Int     | No       | 86400000                     |

After:

| password                                  | String  | No       | -                            |
| query                                     | String  | No       | -                            |
| compatible_mode                           | String  | No       | -                            |
| dialect                                   | String  | No       | -                            |
| database                                  | String  | No       | -                            |
| table                                     | String  | No       | -                            |
| schema                                    | String  | No       | -                            |
| tablePrefix                               | String  | No       | -                            |
| tableSuffix                               | String  | No       | -                            |
| primary_keys                              | Array   | No       | -                            |
| multi_table_sink_replica                  | Int     | No       | 1                            |
| connection_check_timeout_sec              | Int     | No       | 30                           |
| connect_timeout_ms                        | Int     | No       | 86400000                     |
| socket_timeout_ms                         | Int     | No       | 86400000                     |

1.2 Compatibility

Fully compatible at runtime: no API, option/default, protocol, persisted state or historical task behavior changes. The Hive wording must be corrected to avoid inventing an isolation guarantee. No migration.

1.3 Performance and side effects

No CPU/memory/GC/network/locking/retry/idempotency/resource change. The material risk is users assuming storage atomicity the existing committer does not provide.

1.4 Errors, logging, and findings

Issue 6: Narrow the Hive whole-checkpoint atomic commit/rollback claim

  • Location: docs/zh/connectors/sink/Hive.md:15.
  • Description and risk: This is carried-over Issue 6. The new description says every checkpoint commits or rolls back as a whole. FileSinkAggregatedCommitter.java:85-95 publishes each file sequentially; HiveSinkAggregatedCommitter.java:105-119 registers partitions afterwards and returns failures for retry. A failure can leave earlier files visible. There is no checkpoint-wide Hive ACID transaction or automatic all-file physical rollback.
  • Best improvement: Describe staged files finalized through the checkpoint commit protocol, while explicitly avoiding atomic multi-file visibility/whole-checkpoint rollback guarantees. Keep the correction in the guide; implementing transactional storage is a separate design. Align English if adding equivalent wording.
  • Responsibility and trade-off: The inaccurate claim is in the Hive guide; correcting it there is the best/smallest fix. Do not extend a documentation cleanup into transactional filesystem engineering. Existing option and provider implementation stays unchanged.
  • Severity: Medium; blocking: true.
  • Previously raised by another reviewer: No, unless explicitly attributed above.

Issue 5: Remove the duplicate StarRocks replica option rows

  • Location: docs/en/connectors/sink/StarRocks.md:58.
  • Description and risk: The StarRocks part of carried-over Issue 5 remains: both languages add a second multi_table_sink_replica row while the existing row already gives default 1 and minimum 1. The former JDBC schema duplication is no longer present.
  • Best improvement: Retain one row per key, preferring the existing minimum-bound description, and keep the useful JDBC explanatory section.
  • Responsibility and trade-off: The inaccurate claim is in the Hive guide; correcting it there is the best/smallest fix. Do not extend a documentation cleanup into transactional filesystem engineering. Existing option and provider implementation stays unchanged.
  • Severity: Low; blocking: false.
  • Previously raised by another reviewer: No, unless explicitly attributed above.

I read @davidzollo's earlier approvals. They apply to earlier heads; I agree with the useful documentation direction, but the retained Hive atomicity claim at this head still conflicts with the sequential file/partition commit path, so I cannot treat those approvals as resolving Issue 6.

2. Code quality

2.1 Conventions

Reviewed all changed files for license, imports, naming, core-method and state-field comments. See the numbered findings for the required changes.

2.2 Test coverage and stability

Stability rating: Stable. No UT/E2E changes; test stability rating not applicable. Read all bilingual changes and the writer/committer/factory/UDF paths. Current Apache and fork Builds are successful, but website success does not prove an atomic cross-file Hive commit. No local execution.

2.3 Documentation

Both language deltas were checked, including the Chinese SQL Server example and LLM batching row. Existing inherited provider wording is not described as a new implementation in this PR. Fix the remaining Hive claim and deduplicate StarRocks.

3. Architecture

3.1 Change location

The inaccurate claim is in the Hive guide; correcting it there is the best/smallest fix. Do not extend a documentation cleanup into transactional filesystem engineering. Existing option and provider implementation stays unchanged.

3.2 Maintainability

Keep the behavior, lifecycle ownership, and failure contract together. The inaccurate claim is in the Hive guide; correcting it there is the best/smallest fix. Do not extend a documentation cleanup into transactional filesystem engineering. Existing option and provider implementation stays unchanged.

3.3 Extensibility

Prefer the existing component boundary and tests over unrelated shared abstractions.

3.4 Upgrade impact

Fully compatible at runtime: no API, option/default, protocol, persisted state or historical task behavior changes. The Hive wording must be corrected to avoid inventing an isolation guarantee. No migration.

4. Findings summary

Completeness check: All changed files and affected entry/failure paths were reviewed; configuration/serialization compatibility, test failure capability and stability, documentation/examples, change ownership, and current CI/conflict/review gates are covered above. No unreviewed source scope is claimed complete.

# Finding Location Severity
6 Narrow the Hive whole-checkpoint atomic commit/rollback claim docs/zh/connectors/sink/Hive.md:15 Medium
5 Remove the duplicate StarRocks replica option rows docs/en/connectors/sink/StarRocks.md:58 Low

5. Merge recommendation

Merge after fixes

Blocking items: Issue 6. Current-head CI and write-capable maintainer review remain independent requirements.

Non-blocking suggestions: Issue 5: Remove the duplicate StarRocks replica option rows

Overall: the approach addresses a real path, but the listed blockers must be closed. Daniel has READ permission, so this COMMENT cannot dismiss historical requested changes or satisfy a write-capable maintainer approval gate.

CI and repository state: Signal pull request update: SUCCESS; Build: SUCCESS; Build: success. GitHub reports BLOCKED / REVIEW_REQUIRED.

Verification: Reviewed all changed files and the referenced call sites at de2a6bb2217db11c7df3651f219df0d62032231c against merge base c8e7a262897f341361094f158ffd4f60ae466b80. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.

Review time: 2026-11-21T06:57:16.881684-05:00

Local evidence: git fetch obtained head de2a6bb2217db11c7df3651f219df0d62032231c; git merge-base returned c8e7a262897f341361094f158ffd4f60ae466b80; git diff --stat reports 16 files changed, 113 insertions(+), 8 deletions(-). git show and source searches were used for the entry points above. No local build, unit test, E2E, Docker run or service startup was executed.

…ocks row

- Narrow the Hive sink description (en and zh): the previous wording said
  each checkpoint either commits or rolls back as a whole. The actual
  protocol stages files in temporary transaction directories and finalizes
  them at checkpoint commit by renaming files into place and registering
  partitions afterwards (FileSinkAggregatedCommitter.commit publishes files
  sequentially; HiveSinkAggregatedCommitter.commit registers partitions
  after file commit and returns failures for retry). The description now
  states this and no longer promises atomic all-file visibility or an
  automatic whole-checkpoint rollback.
- Remove the duplicated multi_table_sink_replica row added by this PR in
  the StarRocks sink option table (en and zh); the pre-existing row that
  documents the minimum value of 1 is kept.
nzw921rx
nzw921rx previously approved these changes Nov 25, 2026

@nzw921rx nzw921rx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM

@nzw921rx nzw921rx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@nzw921rx
nzw921rx enabled auto-merge November 25, 2026 14:49
@nzw921rx
nzw921rx added this pull request to the merge queue Nov 25, 2026
Merged via the queue into apache:dev with commit e15ceed Nov 25, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants