zhangshenghang opened a new pull request, #13401:
URL: https://github.com/apache/seatunnel/pull/13401
Yes, I am contributing to Apache SeaTunnel.
## What documentation issues were found
I audited connector and general docs on `dev` against the actual Java source
code (option names, default values, required markers, option types, plugin
identifiers, example configs, type-mapping tables, and prose feature claims).
The audit found 14 real documentation defects in areas not covered by any open
PR. All findings below are backed by specific code locations.
## What was changed
Every fix was applied to both the English and Chinese docs unless noted:
1. **Pulsar source** (`source/Pulsar.md`): the "Read From a Topic Pattern
With Discovery" example combined `topic-pattern` + `topic-discovery.interval =
30000` + `cursor.stop.mode = "LATEST"` with no `env` block, so the source is
bounded and the job always fails with `Bounded streams do not support dynamic
partition discovery.` (`PulsarSource.java:312-318`). The example is now a
streaming example (`job.mode = "STREAMING"`, `cursor.stop.mode = "NEVER"`) with
the restriction explained.
2. **S3-Redshift sink** (`sink/S3-Redshift.md`): documented option
`access_secret` does not exist in the code — the real key is `secret_key`
(`S3FileBaseOptions.java:32-36`). Following the doc breaks job startup because
the examples configure `SimpleAWSCredentialsProvider`, under which `secret_key`
is validation-required. Renamed the table row, section heading and all three en
examples; the zh examples already used `secret_key` while the zh table said
`access_secret` (internal contradiction) — both files now consistent.
3. **IoTDBv2 sink** (`sink/IoTDBv2.md`): all three tree-model examples
omitted the required `storage_group` option (required with no default per
`IoTDBv2SinkFactory.optionRule()`), so every example failed option validation
at startup. Added `storage_group = ""` (the doc's own note allows an empty
value when `key_device` carries the full path). Also, the type-mapping table
presented `TIMESTAMP`/`DATE` mappings that throw `UNSUPPORTED_DATA_TYPE` in the
default tree dialect (`DefaultSeaTunnelRowSerializer.convert`); the table is
now qualified per dialect and `STRING` → `TEXT` for tree mode.
4. **Typesense sink** (`sink/Typesense.md`): the tip claimed
`UPDATE`/`DELETE` row kinds "are not interpreted as CDC operations — every
upstream row is upserted". In fact `UPDATE_BEFORE` rows are skipped and
`DELETE` rows delete the document (`TypesenseSinkWriter.java:85,98-101`).
Rewrote the tip in both languages.
5. **OceanBase source** (`source/OceanBase.md`): `int_type_narrowing` was
described as controlling TINYINT(1) narrowing, but the OceanBase path never
reads the option and always maps `TINYINT(1)` to BOOLEAN
(`OceanBaseMySqlTypeConverter.java:147-153`, `OceanBaseDialectFactory` ignores
it). `partition_column` claimed "only support numeric type column and string
type column", but `DATE` is a supported split key
(`ChunkSplitter.isSupportSplitColumn`). Both descriptions corrected.
6. **Hive sink** (`sink/Hive.md`): the documented default
`save_mode_create_template` omitted the `TBLPROPERTIES
('seatunnel.creation.mode' ..., 'seatunnel.created.time' ...)` clause that the
real default template contains
(`HiveTableTemplateUtils.getDefaultNonPartitionedTemplate`), and implied a
template-SQL execution path when the option is unset. Corrected in both
languages.
7. **Kudu sink** (`sink/Kudu.md`): the `[x] cdc` feature marker was
inaccurate — `KuduRowSerializer` throws `Unsupported write row kind:
UPDATE_BEFORE`, so the sink does not satisfy the cdc definition in
`connector-v2-features.md`. Unchecked the marker in both languages.
8. **Easysearch source + sink** (`source/Easysearch.md`,
`sink/Easysearch.md`): type-mapping tables missed the supported `binary` →
`STRING` mapping (`EzsTypeMappingSeaTunnelType.java:37`). Added `BINARY` to the
STRING row in all four files.
9. **NatsJetStream sink** (`sink/NatsJetStream.md`): claimed a `subject`
native mapping pointing to a missing schema field is silently skipped;
validation actually fails unless the sink-level `subject` fallback is
configured (`NatsJetStreamSinkValidator.validateSubjectField`). Reworded in
both languages.
10. **Snowflake sink** (`sink/Snowflake.md`): `generate_sink_sql` is used in
the CDC example and referenced by three option-table rows but was missing from
the options table itself. Added the row (Boolean, default `false`, per
`JdbcSinkOptions.java:51-55`).
11. **ClickhouseFile sink** (`sink/ClickhouseFile.md`):
`node_pass.node_address` / `node_pass.password` were shown as plain optional
sub-options, but each `node_pass` entry must contain both or job initialization
fails (`ClickhouseFileSinkFactory.java:129-146`). Documented the constraint.
12. **Clickhouse source** (`source/Clickhouse.md`): `table_path` and `sql`
are both marked optional with no note that at least one is required per
`table_list` entry (`ClickhouseTableConfig.java:103-106` throws when both are
empty). Added the note.
13. **IoTDB sink** (`sink/IoTDB.md`): `connection_timeout_in_ms` was
documented without its hard dependency on `enable_rpc_compression` — setting it
alone throws at config load (`SinkConfig.java:95-98`). Documented the
dependency.
14. **Zeta user command** (`engines/zeta/user-command.md`): the sample
`--member` output showed Hazelcast version `5.3.0`, but the build ships
Hazelcast 5.1.x, and two sample member IDs contained non-hex characters.
Corrected the sample output in both languages.
Two fixes I initially made were **removed from this PR** after the duplicate
check below showed open PR #13380 already fixes them (Maxcompute source
`project` required marker; Pulsar `cursor.stop.mode [Enum]` heading).
## Which areas/files were updated
30 files (15 doc pairs, en + zh): connectors source docs (Clickhouse,
Pulsar, OceanBase, Easysearch), sink docs (ClickhouseFile, Easysearch, Hive,
IoTDB, IoTDBv2, Kudu, NatsJetStream, S3-Redshift, Snowflake, Typesense), and
Zeta `engines/zeta/user-command.md`. `git diff --stat`: 76 insertions, 44
deletions.
## Whether English and Chinese docs were both checked
Yes. Every fix was applied to both language trees, and each en/zh pair was
reviewed side by side so tables, notes, and examples stay consistent. Two of
the issues existed only through en/zh divergence (S3-Redshift zh examples vs
table; Pulsar zh heading already said Enum).
## How duplicate PRs from the last 7 days were checked
I listed all PRs by the author and all open docs PRs created since
2026-11-15 (`gh pr list` / API), and diffed the file lists of every open docs
PR: #13390, #13380, #13379, #13327, #13302, #13289, #13284, #13282, #13274,
#13258. Connector areas covered by those PRs (file connectors, JDBC-family
pages, CDC pages, Doris/StarRocks/TDengine/Milvus,
Redis/ES/Couchbase/RocketMQ/RabbitMQ, Paimon/Hudi, transforms, Zeta
REST/architecture pages) were excluded from this audit. The overlap check
against #13380's actual diff (738 lines) found two duplicated fixes and one
same-file overlap; the two duplicated fixes were reverted (Maxcompute `project`
marker, Pulsar `[Enum]` heading), and the remaining same-file hunks (IoTDB,
IoTDBv2, Clickhouse, Pulsar) touch different lines and merge cleanly.
## How the change was verified
- Each issue was verified against the Java source before editing (option
definitions, factory `optionRule()`, serializers, validators — exact file:line
evidence listed above).
- Ran a relative-link and anchor checker across all of `docs/en` and
`docs/zh` (including `.mdx`): no new broken links; the only remaining hits are
pre-existing false positives inside inline code spans.
- Ran a Markdown table column-consistency check over all 30 modified files:
0 issues.
- Re-checked en/zh parity for every modified pair.
- Not run locally: the CI "Build website" job (it checks out
`apache/seatunnel-website`, runs `npm install` + docusaurus build). It was
skipped because this PR only edits Markdown prose/tables, the website build is
heavy, and the structural checks above cover the failure modes relevant to text
edits.
## Scope
Docs-only change: no code, no config option changes, no API changes.
Incompatible-changes doc does not apply.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]