Skip to content

[Docs] Fix connector feature claims and align diverged en/zh tables with source code - #13121

Merged
nzw921rx merged 1 commit into
apache:devfrom
zhangshenghang:docs-fix-20261103
Nov 4, 2026
Merged

nzw921rx merged 1 commit into
apache:devfrom
zhangshenghang:docs-fix-20261103

Conversation

@zhangshenghang

Copy link
Copy Markdown
Member

Yes, I am contributing to Apache SeaTunnel.

What documentation issues were found

While cross-checking connector documentation against the Java source code and comparing English (docs/en) with Chinese (docs/zh) pages, I found three groups of real, verifiable issues:

  1. Wrong "column projection" feature claims — the docs' Key features matrix claimed column projection support for connectors whose source classes do not implement SupportColumnProjection (org.apache.seatunnel.api.source.SupportColumnProjection):
    • source/Airtable.md, source/Jira.md, source/OneSignal.md, source/Shopify.md (all extend the HTTP base source, which does not implement the interface)
    • source/Kudu.md (KuduSource does not implement the interface)
  2. Inverted claim for the file source family — source/OssJindoFile.md unchecked column projection, although the shared BaseFileSource implements SupportColumnProjection and every other file source doc (LocalFile, HdfsFile, OssFile, ObsFile, BosFile, CosFile, GcsFile, S3File, SftpFile, SmbFile, FtpFile) marks it as supported.
  3. English/Chinese option tables diverged in structure:
    • docs/en/connectors/source/OssJindoFile.md: the options table had only 4 columns (no description column), while the Chinese page has full 5-column tables — added the English description column (37 options).
    • docs/zh/connectors/sink/Hudi.md: both tables (base configuration + table list) lacked the 描述 column — added it (24 options).
    • docs/zh/connectors/sink/Hive.md: the options table lacked the 描述 column — added it (18 options).
  4. Deprecated/unsupported env key in examples — example configs used execution.parallelism in env {} blocks. This key is a deprecated Flink-only alias (ConfigKeyName.PARALLELISM, logs a deprecation warning) and is silently ignored by the Zeta engine, which only reads parallelism (EnvCommonOptions.PARALLELISM). Replaced it with parallelism in pages not touched by other open PRs: OceanBase-CDC, Opengauss-CDC, PostgreSQL-CDC, Kafka (source), Intercom, Asana, transforms/metadata (en + zh).

What was changed

  • Feature-matrix checkbox corrections ([x] ↔ [ ]) for column projection, verified against SupportColumnProjection implementations in the code.
  • Added missing description columns to option tables, with descriptions aligned with the sibling-language page and the code (FileBaseSourceOptions, HudiSinkOptions, Hive sink options). Hudi option defaults (batch_size=1000, batch_interval_ms=1000, insert/upsert_shuffle_parallelism=2, min/max_commits_to_keep=20/30, index_type=BLOOM, record_byte_size=1024, cdc_enabled=false) were re-verified against HudiSinkOptions before translating.
  • Replaced execution.parallelism with parallelism inside env {} example blocks.

Areas/files updated (28 files, en + zh always in pairs)

  • docs/{en,zh}/connectors/source/: Airtable, Jira, OneSignal, Shopify, Kudu, OssJindoFile (feature claims; OssJindoFile en also got the description column)
  • docs/{en,zh}/connectors/source/: OceanBase-CDC, Opengauss-CDC, PostgreSQL-CDC, Kafka, Intercom, Asana (env key fix)
  • docs/{en,zh}/transforms/metadata.md (env key fix)
  • docs/zh/connectors/sink/Hudi.md, docs/zh/connectors/sink/Hive.md (描述 column added)

Both languages checked

Yes — every fix was applied to both the English and Chinese page. The en/zh option-table row counts now match for the fixed pages, and all plugin_name examples, option tables, and feature claims of both locales were checked.

Duplicate PR check (last 7 days)

Checked all PRs created since 2026-10-27 (gh pr list --state all), including today's #13117, #13118, #13119, #13113 and the open docs PRs #13050, #13072, #13097:

Verification

  • Automated checks written for this change (run locally over the whole docs/ tree):
  • Full docusaurus website build (the CI document job) was not run locally because it requires checking out the separate apache/seatunnel-website repository and installing its npm dependencies; the changes are markdown-only with consistent tables, inline code spans around all ${...} placeholders, and valid relative links/anchors, so the MDX render risk is minimal.

__zcode_status=$?
if [ "$__zcode_status" -eq 0 ]; then pwd -P > '/var/folders/67/72cc9wwd6cl2fzm7rg17xxrh0000gn/T/zcode-631e7b6b-7da2-4e8d-9861-f04b0cb47626-cwd'; fi
exit "$__zcode_status"

@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 a lot @zhangshenghang for this careful cross-check pass. I re-verified every changed claim against the connector source on the PR base (941276923f), and they all hold up.

What Problem Does This PR Solve?

Several connector pages had feature-matrix claims that do not match the code (column projection), the en/zh option tables of OssJindoFile / Hudi / Hive had drifted in structure, and a set of examples still used the deprecated Flink-only env key execution.parallelism. This PR fixes those three groups, always in en/zh pairs.

1 Code Change Review

1.1 Core logic (documentation claims vs source)

Column projection matrix:

  • Airtable, Jira, OneSignal, Shopify -> [ ]: correct. AirtableSource / JiraSource / OneSignalSource / ShopifySource all extend HttpSource (connector-http-base/.../http/source/HttpSource.java:56), which extends AbstractSingleSplitSource (connector-common/.../common/source/AbstractSingleSplitSource.java:28-29) and implements only SeaTunnelSource. Nothing in connector-http implements SupportColumnProjection. I also checked the other HTTP-family source pages (Http, Notion, Github, Gitlab, Klaviyo, Lemlist, ...) and none of them still claims [x], so the fix is complete for this family.
  • Kudu -> [ ]: correct. KuduSource implements SeaTunnelSource and SupportParallelism only (connector-kudu/.../kudu/source/KuduSource.java:37-39).
  • OssJindoFile -> [x]: correct. The Jindo OssFileSource extends BaseFileSource (connector-file-jindo-oss/.../oss/jindo/source/OssFileSource.java:26), and BaseFileSource implements SupportColumnProjection (connector-file-base/.../file/source/BaseFileSource.java:52); read_columns is also in the factory optionRule().

Option tables:

  • docs/en/connectors/source/OssJindoFile.md: the new description column matches the zh page row by row (37 rows, same order), and every key is present in OssFileSourceFactory#optionRule().
  • docs/zh/connectors/sink/Hudi.md: the new descriptions are faithful translations of the en table, and the defaults match HudiSinkOptions (database=default, COPY_ON_WRITE, INSERT, batch_interval_ms=1000, batch_size=1000, shuffle parallelism 2/2, commits 20/30, BLOOM, record_byte_size=1024, cdc_enabled=false; HudiSinkOptions.java:56-161).
  • docs/zh/connectors/sink/Hive.md: the 18 descriptions mirror the en table one to one.

Env key: execution.parallelism is read only by the Flink starter as a deprecated alias (seatunnel-flink-starter-common/.../flink/utils/ConfigKeyName.java:28, AbstractFlinkRuntimeEnvironment.java:195-198, with a deprecation warning), while the common key is parallelism (seatunnel-api/.../api/options/EnvCommonOptions.java:29-32). Replacing it is correct, and none of the 26 touched pages still contains execution.parallelism on the head.

1.2 Compatibility

Docs only. No option, default, API, or runtime behavior changes.

1.3 Side effects

None. ${...} placeholders in the zh Hive table are inside inline code, so MDX rendering is safe; the fork Build website / Dead links jobs passed.

1.4 Error handling / logging

Not applicable.

2 Quality

2.1 Standards

Markdown tables have consistent column counts; en/zh pages are changed in pairs.

2.2 Tests and stability

No tests needed for a docs-only change. Stability: Stable.

2.3 Docs

en/zh parity verified for every touched page (feature matrix, option rows, examples).

3 Architecture

No architectural impact.

4 Issue table

# Location Problem Severity
1 PR description (bottom) The description ends with a stray shell trailer (__zcode_status=$? ... exit) that includes a local temp path. It looks like a copy/paste artifact from a tool. Please remove it from the PR description. Nit, non-blocking
2 Other docs pages About 26 other en/zh pages still use execution.parallelism in env {} examples; you intentionally left pages touched by other open PRs. A follow-up once those PRs land would finish the cleanup. Suggestion, non-blocking

5 Merge recommendation

Ready to merge. No blockers; CI is green. The two items above are optional cleanups. Thanks again for the solid source-backed verification.

@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

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.

3 participants