Skip to content

[Docs] Fix connector doc inaccuracies and en/zh parity verified against source code - #12679

Merged
davidzollo merged 11 commits into
apache:devfrom
zhangshenghang:docs-fix-batch-20261007
Nov 7, 2026
Merged

davidzollo merged 11 commits into
apache:devfrom
zhangshenghang:docs-fix-batch-20261007

Conversation

@zhangshenghang

Copy link
Copy Markdown
Member

Purpose of this PR

This PR fixes a batch of verified documentation issues found by cross-checking connector docs against the actual Java source code (Options, OptionRule, type converters, placeholder definitions), and restores en/zh doc parity where the two languages had diverged.

What issues were found

Doc vs code mismatches (verified against source):

  • partition_num default documented as "job parallelism" but the effective default in JdbcSourceTableConfig (DEFAULT_PARTITION_NUMBER = 10) is 10: Mysql, PostgreSQL, SqlServer, OceanBase, Redshift, Vertica (en+zh, table cells + prose sections).
  • DuckDB type mapping tables contradicted DuckDBTypeConverter and its unit tests: unsigned ints (UTINYINT→TINYINT, USMALLINT→SMALLINT, UINTEGER→INT, UBIGINT→BIGINT — not the shifted mapping the doc claimed), DECIMAL>38 truncates precision/scale to 38 (not DECIMAL(38,18)), ARRAY/STRUCT/MAP→STRING (not BYTES) on read, and on write TINYINT/SMALLINT are not widened to INTEGER while ARRAY/ROW/MAP throw a conversion error instead of mapping to BLOB (source+sink, en+zh).
  • Datahub sink documented a nonexistent ${table} placeholder and claimed ${table_name} (the real framework placeholder per TablePlaceholder.java) was deprecated — the doc had the relationship inverted and the example config would fail at runtime (en+zh).
  • Vertica: source doc mapped INT UNSIGNED/BIGINT to LONG (SeaTunnel type is BIGINT, cf. VerticaTypeMapper); partition_lower_bound/partition_upper_bound documented as BigDecimal but declared stringType in JdbcSourceOptions; sink Description claimed XA exactly-once support, contradicting the doc's own Key Features note and the Vertica dialect (en+zh).
  • DB2 source: BIGINT→LONG and DECIMAL→DECIMAL(38,18) did not match DB2TypeConverter (en+zh).
  • OceanBase source: MySQL-mode table mapped TINYINT to both BYTE and SMALLINT (duplicate/contradictory row); Oracle-mode Number(p), p>18 maps to DECIMAL(min(p,38), 0) per OracleTypeConverter, not DECIMAL(38,18) (en+zh).
  • PostgreSQL source: driver row said "if you use MySQL the value is com.mysql.cj.jdbc.Driver" — copy-paste from the MySQL doc (en+zh).
  • OneSignal: format default documented as json but code default is TEXT (HttpSourceOptions); pagination example used page_step, an option that does not exist anywhere in connector-http (en+zh).
  • Assert sink: type column said comment for ...\_comment (not a type — it's a string) and field_type omitted the ConfigMap variant that the doc's own section and AssertRuleParser accept (en+zh).
  • RocketMQ / Pulsar FAQ listed incomplete startup-mode sets vs the code enums and option rules (en+zh).
  • GraphQL / Airtable sinks/sources missing rows for options present in the factory OptionRule (multi_table_sink_replica default 1, retry/backoff/poll options) (en+zh).
  • Elasticsearch sink en doc: auth_type summary cell omitted api_key_encoded (supported by the enum and documented further down the same page); removed a duplicated ### Schema Evolution heading (en).
  • Greenplum sink: en doc lacked the Data Type Mapping section that zh has; zh table mapped MONEY→DECIMAL(p,s) but PostgresTypeConverter maps MONEY to DECIMAL(30,2).

en/zh parity:

  • zh InfluxDB source was missing the where option section and the "Bounded Read With Parallel Splits" example; zh InfluxDB sink was missing the "Per-Table Measurement With Replicated Writers" example — both ported/translated from the en docs.
  • zh ObsFile source had a duplicated sheet_name row in the option table — removed.

What was changed

42 documentation files (21 en + 21 zh), +225/−87 lines, all real content fixes (option tables, type mappings, examples, FAQ answers); no reformatting or whitespace-only churn.

Are the English and Chinese docs both checked?

Yes. Every fix was applied to both docs/en and docs/zh where the same content exists in both languages, and the zh-only gaps (InfluxDB examples, ObsFile duplicate row) were fixed for parity.

Duplicate check (last 7 days)

Checked PRs created since 2026-09-30 via GitHub search (docs-related): #12675 (Mqtt), #12663, #12641 (Zeta engine), #12621 (Http-Linear/FakeSource/SNMP/common-options), #12615 (Ftp/Hdfs/Hive/Jdbc-sink/Paimon/StarRocks/CDC), #12609 (transforms/configuration), #12602 (formats/Clickhouse/Doris/Kafka), #12570 (Paimon/Redis), #12611 (RAG). None of the files or issues fixed here overlap with those PRs; this PR targets connectors and pages they did not touch.

How the change was verified

  • For every doc claim, compared against the code: JdbcSourceTableConfig, DuckDBTypeConverter (+ its unit tests), VerticaTypeMapper, DB2TypeConverter, OracleTypeConverter, PostgresTypeConverter, TablePlaceholder, HttpSourceOptions/HttpSourceReader (pagination keys), RocketMqSourceOptions, PulsarSourceOptions, AssertConfig, AirtableSourceFactory/AirtableSinkFactory, SinkConnectorCommonOptions, ElasticsearchBaseOptions.
  • Ran a local Markdown consistency check over all 42 changed files: table column-count consistency (with escaped-pipe handling) and relative-link target resolution — all pass.
  • Full CI (dead-link job) requires network and is continue-on-error upstream; no links were added or removed by this change, so it was not run locally.

@SEZ9 SEZ9 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for working on this. I reviewed the latest head feb6a04162a0.

What this PR fixes

  • User pain: Connector docs had drifted from the code — JDBC source pages (Mysql/PostgreSQL/SqlServer/OceanBase/Redshift/Vertica) claimed partition_num defaults to job parallelism when JdbcSourceTableConfig.DEFAULT_PARTITION_NUMBER is 10, DuckDB type tables contradicted DuckDBTypeConverter (unsigned ints, DECIMAL>38, ARRAY/STRUCT/MAP→STRING on read, ARRAY/ROW/MAP failing on write), the Datahub sink page inverted the ${table}/${table_name} relationship so its multi-table example would not resolve against TablePlaceholder (table_name/table_full_name), Vertica/DB2 used Java type names (LONG) for SeaTunnel types, and several zh pages (InfluxDB source/sink, Greenplum) lacked sections present in en.
  • Fix approach: Docs-only edits across 20 en + 22 zh pages — corrected defaults/types/placeholders in option tables and prose, rewrote the DuckDB source+sink mapping tables to match the converter, added missing Airtable/GraphQL/Elasticsearch option rows, added a new Greenplum sink "Data Type Mapping" table, and ported InfluxDB where/type-mapping sections into zh.
  • One-line summary: Mostly accurate and worth merging after fixes: the new Greenplum sink table (docs/en/connectors/sink/Greenplum.md:66: | TIMESTAMP / TIMESTAMPTZ | TIMESTAMP |) contradicts the PostgreSQL converter it says it reuses (PostgresTypeConverter.java:284-286 maps timestamptz → OFFSET_DATE_TIME_TYPE, i.e. TIMESTAMP_TZ) and is written in the read direction on a sink page; the shared partition_lower_bound/partition_upper_bound type is fixed to String only on Vertica while the sibling pages touched here still say BigDecimal/Long; the ported InfluxDB where caution overstates "no effect" and case-sensitivity versus the factory's outright rejection with tables_configs; and the DuckDB DECIMAL rows leave precision == 38 uncovered and the HUGEINT row omits UHUGEINT/BIGNUM (also → DECIMAL(38,0), DuckDBTypeConverter.java:127-130). All are fixable in-PR.

Findings

Issue 1: zh InfluxDB source where section (copied from en) says the option has no effect and the parser is case-sensitive, but with tables_configs the factory rejects where outright and the split parser is case-insensitive

  • Location: docs/zh/connectors/source/InfluxDB.md:167
  • Why it matters: - The new zh block (mirroring docs/en/connectors/source/InfluxDB.md:177-184) states that setting where has no effect on the generated split queries, that the split parser is case-sensitive on the where keyword, and that only InfluxDBSourceFactory.optionRule() still references the option.
  • That is only true for the single-table path. InfluxDBSourceFactory.buildTables() does if (config.getOptional(InfluxDBSourceOptions.SQL_WHERE).isPresent()) throw new OptionValidationException("With tables_configs, put each WHERE predicate inside that entry's sql, not in a separate where option") (InfluxDBSourceFactory.java:125-127). So with tables_configs, setting where fails job creation rather than being ignored, and optionRule() is not the only place the option is read.
  • Case sensitivity also differs by mode: InfluxDBSourceSplitEnumerator uses sql.split(InfluxDBSourceOptions.SQL_WHERE.key()) only when tableId == null; the tables_configs path uses sql.split("(?i)\\s+where\\s+", 2) (InfluxDBSourceSplitEnumerator.java:175-178), which is case-insensitive.
  • Impact: users of tables_configs who follow this caution will be surprised by a validation error, and users who read "case-sensitive" may needlessly rewrite uppercase WHERE in multi-table SQL. Both the zh and en paragraphs should describe the two modes separately.
  • Evidence: docs/zh/connectors/source/InfluxDB.md:168 例如 select * from test where age > 0。切分解析器对 where 关键字区分大小写。; docs/zh/connectors/source/InfluxDB.md:171 出于向后兼容仍然引用它;运行时的切分查询生成器并不会读取它。
  • Suggested fix: This is only accurate for the single-table path. With tables_configs, InfluxDBSourceFactory.buildTables() throws OptionValidationException("With tables_configs, put each WHERE predicate inside that entry's sql, not in a separate where option") when where is set (InfluxDBSourceFactory.java:125-127), so it is a hard rejection there, not a no-op — and optionRule() is not the only place that reads the option. Likewise the case-sensitive split (sql.split(SQL_WHERE.key())) is only used when tableId == null; the tables_configs path uses sql.split("(?i)\\s+where\\s+", 2) (InfluxDBSourceSplitEnumerator.java:175-178). Please describe both modes here and in the matching en paragraph (docs/en/connectors/source/InfluxDB.md:177-184).
  • Severity: Medium

Issue 2: New Greenplum sink type-mapping table maps TIMESTAMPTZ to TIMESTAMP, but PostgresTypeConverter maps timestamptz to TIMESTAMP_TZ; the table is also written in source direction (Greenplum -> SeaTunnel) on a sink page

  • Location: docs/en/connectors/sink/Greenplum.md:66
  • Why it matters: - The newly added table in docs/en/connectors/sink/Greenplum.md says TIMESTAMP / TIMESTAMPTZ | TIMESTAMP. Greenplum uses the PostgreSQL dialect (GreenplumDialectFactory.create() returns new PostgresDialect()), and in PostgresTypeConverter.convert() (psql/PostgresTypeConverter.java:284-286) PG_TIMESTAMP_TZ is mapped to LocalTimeType.OFFSET_DATE_TIME_TYPE, i.e. SeaTunnel TIMESTAMP_TZ, not TIMESTAMP. The existing PostgreSQL source page (docs/en/connectors/source/PostgreSQL.md:77, TIMESTAMP(s)<br/>TIMESTAMPTZ(s) | TIMESTAMP(s)) has the same drift, so this PR propagates an incorrect row rather than verifying it against the converter.
  • The table header is | Greenplum Data Type | SeaTunnel Data Type |, i.e. the read direction, although this is the sink page (see F3 for the direction issue).
  • The zh page (docs/zh/connectors/sink/Greenplum.md:66) carries the identical row and needs the same fix.
  • Evidence: docs/en/connectors/sink/Greenplum.md:53 +| Greenplum Data Type | SeaTunnel Data Type |; docs/zh/connectors/sink/Greenplum.md:60 +| MONEY | DECIMAL(30,2) |; docs/en/connectors/sink/Greenplum.md:66 | TIMESTAMP / TIMESTAMPTZ | TIMESTAMP |
  • Suggested fix: PostgresTypeConverter.convert() maps timestamptz to LocalTimeType.OFFSET_DATE_TIME_TYPE (SeaTunnel TIMESTAMP_TZ), not TIMESTAMP (PostgresTypeConverter.java:284-286), and Greenplum reuses that converter via GreenplumDialectFactory -> new PostgresDialect(). Please split this row into TIMESTAMP -> TIMESTAMP and TIMESTAMPTZ -> TIMESTAMP_TZ. Also, since this is the sink page, consider documenting the SeaTunnel -> Greenplum direction (reconvert()) instead of the read direction, and mirror the fix in the zh table.
  • Severity: Medium

Issue 3: New Greenplum sink 'Data Type Mapping' table documents the read direction (Greenplum -> SeaTunnel) on a sink page; the write direction (SeaTunnel -> Greenplum via PostgresTypeConverter.reconvert) is what sink users need and differs (e.g. MONEY).

  • Location: docs/en/connectors/sink/Greenplum.md:53
  • Why it matters: - The new section in docs/en/connectors/sink/Greenplum.md is headed | Greenplum Data Type | SeaTunnel Data Type | and lists rows such as MONEY -> DECIMAL(30,2). That is the convert() (source/read) mapping from PostgresTypeConverter (case PG_MONEY builds new DecimalType(30, 2), lines 196-200), which Greenplum inherits because GreenplumDialectFactory.create() returns new PostgresDialect().
  • On a sink page the relevant mapping is reconvert() (SeaTunnel -> Greenplum column type, used for automatic table creation under schema_save_mode). There the direction is not symmetric: case DECIMAL only emits money when column.getSourceType() is already money (PostgresTypeConverter.java:359-363); otherwise a DECIMAL becomes numeric(p,s). A reader of this table would expect a SeaTunnel DECIMAL(30,2) to land as MONEY, which it will not.
  • The zh page (docs/zh/connectors/sink/Greenplum.md:53-67) has the same table and the same issue.
  • Evidence: docs/en/connectors/sink/Greenplum.md:60 | MONEY | DECIMAL(30,2) |; docs/zh/connectors/sink/Greenplum.md:60 | MONEY | DECIMAL(30,2) |
  • Suggested fix: This is a sink page, but the table is in the read direction (Greenplum -> SeaTunnel; e.g. MONEY -> DECIMAL(30,2) comes from PostgresTypeConverter.convert()). For a sink what matters is PostgresTypeConverter.reconvert() (SeaTunnel -> Greenplum, used for auto table creation), where a DECIMAL only becomes money if the column's source type was already money (lines 359-363), otherwise numeric(p,s). Could we flip the table to SeaTunnel Data Type | Greenplum Data Type and derive it from reconvert() (and mirror the zh page), or move this table to the Greenplum source doc and link it from here?
  • Severity: Medium

Issue 4: partition_lower_bound/partition_upper_bound type fixed to String only on the Vertica page while Mysql/PostgreSQL/OceanBase/Redshift (BigDecimal) and SqlServer (Long) pages edited in this same PR keep the wrong type for the identical shared option

  • Location: docs/en/connectors/source/Vertica.md:75
  • Why it matters: - JdbcSourceOptions.PARTITION_LOWER_BOUND / PARTITION_UPPER_BOUND (connector-jdbc/.../config/JdbcSourceOptions.java:141-151) are a single stringType() option pair shared by every JDBC dialect page. This PR changes the Vertica source table to String (en and zh) but leaves BigDecimal in the Mysql (Mysql.md:81-82), PostgreSQL (PostgreSQL.md:92-93), OceanBase (OceanBase.md:94) and Redshift (Redshift.md:60) tables and Long in the SqlServer table (SqlServer.md:85-86), all of which this PR touches in the partition_num rows directly below.
  • The prose sections #### partition_lower_bound [BigDecimal] on Mysql.md:167, PostgreSQL.md:156 and SqlServer.md:152 also still carry the old type.
  • Result: the JDBC source pages now disagree with each other about the type of one shared option, and the SqlServer page in particular suggests a type (Long) that would exclude decimal bounds the option accepts.
  • Evidence: docs/en/connectors/source/SqlServer.md:87 +| partition_num | Int | No | 10 | The number of partition count, only support positive integer. default value is 10; docs/en/connectors/source/Mysql.md:83 +| partition_num | Int | No | 10 | The number of partition count, only support positive integer. default value is 10; docs/en/connectors/source/Vertica.md:75 | partition_lower_bound | String | No | - | The partition_column min value for scan, if not set SeaTunnel will query database get min value.
  • Suggested fix: Good catch that JdbcSourceOptions.PARTITION_LOWER_BOUND / PARTITION_UPPER_BOUND are stringType(). However it is the same shared option on every JDBC page: Mysql/PostgreSQL/OceanBase/Redshift still say BigDecimal and SqlServer says Long in the rows directly above the partition_num rows this PR edits (plus the #### partition_lower_bound [BigDecimal] prose headings on Mysql/PostgreSQL/SqlServer). Please update those pages (en+zh) as well so the JDBC docs don't contradict each other about one option.
  • Severity: Medium

Issue 5: DuckDB source doc now maps UBIGINT to BIGINT (matching the converter) but drops any hint that the mapping is lossy for values above Long.MAX_VALUE

  • Location: docs/en/connectors/source/DuckDB.md:63
  • Why it matters: - The PR replaces UBIGINT -> DECIMAL(20,0) with BIGINT<br/>UBIGINT -> BIGINT, which faithfully reflects case DUCKDB_BIGINT: case DUCKDB_UBIGINT: builder.dataType(BasicType.LONG_TYPE) (DuckDBTypeConverter.java:123-125).
  • The mapping itself is lossy: DuckDB UBIGINT ranges to 2^64-1 while SeaTunnel BIGINT is a signed 64-bit long, whereas the sibling HUGEINT/UHUGEINT/BIGNUM case is mapped to DecimalType(MAX_PRECISION, 0) (DuckDBTypeConverter.java:127-130). Users who previously read DECIMAL(20,0) in this table may assume the full unsigned range is preserved; the new row gives no warning that it is not.
  • A one-line caveat (en+zh) pointing users to cast to HUGEINT/DECIMAL in the query when values above Long.MAX_VALUE are expected would close the gap without changing code.
  • Evidence: docs/zh/connectors/source/DuckDB.md:60 | BIGINT<br/>UBIGINT | BIGINT |
  • Suggested fix: This matches DuckDBTypeConverter (case DUCKDB_UBIGINT: builder.dataType(BasicType.LONG_TYPE), lines 123-125), but it is a lossy mapping: UBIGINT goes up to 2^64-1 while SeaTunnel BIGINT is a signed long (HUGEINT, by contrast, gets DECIMAL(38,0) at lines 127-130). Since the old row advertised DECIMAL(20,0), please add a short caveat (en+zh) that values above Long.MAX_VALUE cannot be represented and suggest casting to HUGEINT/DECIMAL in the query when the full range is needed.
  • Severity: Low

Issue 6: DuckDB source type table: the rewritten DECIMAL rows omit the implicit default DECIMAL(18,3) applied when precision/scale are absent, and the adjacent (unchanged) TIMESTAMP WITH TIME ZONE -> TIMESTAMP row still contradicts DuckDBTypeConverter which maps it to TIMESTAMP_TZ.

  • Location: docs/en/connectors/source/DuckDB.md:68
  • Why it matters: - DuckDBTypeConverter.handleDecimalType() uses DEFAULT_PRECISION = 18 and DEFAULT_SCALE = 3 when typeDefine.getPrecision()/getScale() are null (lines 204-206), then caps at MAX_PRECISION = 38 / MAX_SCALE = 38. The new row DECIMAL(x,y)(precision > 38 or scale > 38) -> DECIMAL(min(x,38), min(y,38)) is correct, but a bare DECIMAL column (no precision) is a common case and is not covered by either DECIMAL row; the two rows also leave precision == 38 unaddressed (<38 vs > 38).
  • While fixing this table, the row right below (TIMESTAMP<br/>TIMESTAMP WITH TIME ZONE -> TIMESTAMP, DuckDB.md:73) is still wrong: case DUCKDB_TIMESTAMP_WITH_TZ: builder.dataType(LocalTimeType.OFFSET_DATE_TIME_TYPE) (lines 172-173) yields SeaTunnel TIMESTAMP_TZ. The sink table (docs/en/connectors/sink/DuckDB.md:65) only lists TIMESTAMP -> TIMESTAMP and lacks the TIMESTAMP_TZ -> TIMESTAMP WITH TIME ZONE row that reconvert() implements (lines 295-298).
  • Same gaps exist in the zh source and sink tables.
  • Evidence: docs/zh/connectors/source/DuckDB.md:65 | DECIMAL(x,y)(精度或标度超过 38) | DECIMAL(min(x,38), min(y,38)) |; docs/en/connectors/sink/DuckDB.md:59 | DECIMAL(x,y)(precision > 38 or scale > 38) | DECIMAL(min(x,38), min(y,38)) |; docs/en/connectors/source/DuckDB.md:68 +| DECIMAL(x,y)(precision > 38 or scale > 38) | DECIMAL(min(x,38), min(y,38)) |
  • Suggested fix: This row now matches handleDecimalType(), thanks. Two small gaps in the same table: (1) when the DuckDB column has no precision/scale, DuckDBTypeConverter falls back to DEFAULT_PRECISION = 18 / DEFAULT_SCALE = 3, i.e. DECIMAL(18,3) — worth a row since bare DECIMAL is common (and the <38 / > 38 pair leaves precision == 38 unstated); (2) the TIMESTAMP WITH TIME ZONE -> TIMESTAMP row just below is still off: case DUCKDB_TIMESTAMP_WITH_TZ maps to OFFSET_DATE_TIME_TYPE (TIMESTAMP_TZ), and the sink table lacks the matching TIMESTAMP_TZ -> TIMESTAMP WITH TIME ZONE row from reconvert(). Could we fix both here and in the zh pages?
  • Severity: Low

Issue 7: partition_num default corrected to 10 on six JDBC source pages; this matches JdbcSourceTableConfig.DEFAULT_PARTITION_NUMBER and the sibling Greenplum/Snowflake pages already document the same value.

  • Location: docs/en/connectors/source/Mysql.md:83
  • Why it matters: - The change is correct: JdbcSourceTableConfig.DEFAULT_PARTITION_NUMBER = 10 is applied whenever partition_num is null (JdbcSourceTableConfig.java:42,98), and JdbcSourceOptions.PARTITION_NUM has no default of its own.
  • The option is shared by every JDBC dialect. The other JDBC source pages that document it — docs/en/connectors/source/Greenplum.md:67 and docs/en/connectors/source/Snowflake.md:72 (and their zh counterparts) — already state 10, so after this PR the en JDBC source pages agree on the default. The #### partition_num [int] prose sections on Mysql/PostgreSQL/SqlServer were also updated to 10.
  • No further action needed on this item; noting it so the shared-option consistency check is recorded.
  • Evidence: docs/en/connectors/source/Redshift.md:62 | partition_num | Int | No | 10 | Number of partitions. Only positive integers are supported. Default value is 10.
  • Suggested fix: Correct per JdbcSourceTableConfig.DEFAULT_PARTITION_NUMBER = 10. Since this option is shared by all JDBC dialects, could we also update docs/en/connectors/source/Greenplum.md and docs/en/connectors/source/Snowflake.md (and their zh pages), which still say job parallelism for partition_num? Otherwise the mismatch this PR fixes remains for those two dialects.
  • Severity: Low

Issue 8: DB2 source type table now mixes SeaTunnel type names (BIGINT) with Java type names (SHORT, INTEGER) in adjacent rows

  • Location: docs/en/connectors/source/DB2.md:56
  • Why it matters: - This PR fixes the BIGINT -> BIGINT row to use the SeaTunnel type name, but the neighbouring rows SMALLINT -> SHORT (DB2.md:54) and INT/INTEGER -> INTEGER (DB2.md:55) are left as Java-ish names. DB2TypeConverter.convert() maps these to BasicType.SHORT_TYPE and BasicType.INT_TYPE (DB2TypeConverter.java:115-122), whose SeaTunnel type names are SMALLINT and INT.
  • Impact: the column is titled 'SeaTunnel Data Type' but a user cannot copy SHORT/INTEGER into a schema.fields block or a transform; only SMALLINT/INT are valid SeaTunnel type names. Fixing one row while leaving the two above makes the table internally inconsistent.
  • The zh table (docs/zh/connectors/source/DB2.md:54-56) has the same rows.
  • Evidence: docs/zh/connectors/source/DB2.md:56 +| BIGINT | BIGINT |
  • Suggested fix: Since this row now uses the SeaTunnel type name BIGINT, the rows above (SMALLINT -> SHORT, INT/INTEGER -> INTEGER) should follow the same convention: DB2TypeConverter maps them to BasicType.SHORT_TYPE/INT_TYPE (lines 115-122), i.e. SeaTunnel SMALLINT/INT. SHORT and INTEGER are not valid SeaTunnel type names. Same for the zh table.
  • Severity: Low

Review conclusion

Conclusion: final approval remains pending on the previous comments

2. Remaining follow-ups

  • Issue 1: zh InfluxDB source where section (copied from en) says the option has no effect and the parser is case-sensitive, but with tables_configs the factory rejects where outright and the split parser is case-insensitive
  • Issue 2: New Greenplum sink type-mapping table maps TIMESTAMPTZ to TIMESTAMP, but PostgresTypeConverter maps timestamptz to TIMESTAMP_TZ; the table is also written in source direction (Greenplum -> SeaTunnel) on a sink page
  • Issue 3: New Greenplum sink 'Data Type Mapping' table documents the read direction (Greenplum -> SeaTunnel) on a sink page; the write direction (SeaTunnel -> Greenplum via PostgresTypeConverter.reconvert) is what sink users need and differs (e.g. MONEY).
  • Issue 4: partition_lower_bound/partition_upper_bound type fixed to String only on the Vertica page while Mysql/PostgreSQL/OceanBase/Redshift (BigDecimal) and SqlServer (Long) pages edited in this same PR keep the wrong type for the identical shared option
  • Issue 5: DuckDB source doc now maps UBIGINT to BIGINT (matching the converter) but drops any hint that the mapping is lossy for values above Long.MAX_VALUE
  • Issue 6: DuckDB source type table: the rewritten DECIMAL rows omit the implicit default DECIMAL(18,3) applied when precision/scale are absent, and the adjacent (unchanged) TIMESTAMP WITH TIME ZONE -> TIMESTAMP row still contradicts DuckDBTypeConverter which maps it to TIMESTAMP_TZ.
  • Issue 7: partition_num default corrected to 10 on six JDBC source pages; this matches JdbcSourceTableConfig.DEFAULT_PARTITION_NUMBER and the sibling Greenplum/Snowflake pages already document the same value.
  • Issue 8: DB2 source type table now mixes SeaTunnel type names (BIGINT) with Java type names (SHORT, INTEGER) in adjacent rows

Thanks for the updates so far. Happy to discuss the remaining points.

@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.

Hi @zhangshenghang, thank you for another careful docs-versus-source audit. I spot-checked the claims that matter against the code in your branch (list below), and most of them are right. I also read the earlier review by @SEZ9 on the same head commit (feb6a04) and will not repeat its points; where I agree I say so, and I add one new finding of my own.

(Static review only. I did not run anything; this is docs-only.)

What problem does this PR solve

  • Pain point: connector docs drifted from the code (wrong defaults, type mappings, placeholders, option tables), and zh pages lagged behind en.
  • Approach: correct the doc text and tables from the Java sources (Options/OptionRule/type converters/placeholders) and port the missing zh sections.
  • One-sentence summary: make 42 en/zh connector pages say what the code actually does.

1. Code change review

No production code changes. Because this is docs-only, I verified the claims instead of reviewing logic. Claims I checked against source in your branch:

  • partition_num default 10: JdbcSourceTableConfig.java:42,98 sets DEFAULT_PARTITION_NUMBER = 10 when null; JdbcSourceOptions has no default; FixedChunkSplitter.java:255-294 uses it for the number of splits. Correct (all six dialect pages, prose sections too).
  • DuckDB source mapping: DuckDBTypeConverter.java:111-130 (unsigned types map to the signed SeaTunnel type, HUGEINT/UHUGEINT/BIGNUM to DECIMAL(38,0)), :179-185 (ARRAY/STRUCT/MAP to STRING), :202-228 handleDecimalType (cap at 38). Correct, with the gaps noted by @SEZ9.
  • DuckDB sink mapping: reconvert() at :238-310 keeps TINYINT/SMALLINT and has no ARRAY/ROW/MAP case (the default branch at :305 throws convertToConnectorTypeError). Correct.
  • Datahub placeholders: DataHubSink passes pluginConfig.get(TOPIC) straight through; substitution happens generically in FactoryUtil.java:251 -> TableSinkFactoryContext.replacePlaceholderAndCreate -> TablePlaceholderProcessor, whose keys are table_name, table_full_name, database_name, ... (TablePlaceholder.java). ${table} is not a recognized key. Your correction is right and the old example would not have routed.
  • OceanBase Oracle mode: OceanBaseDialectFactory.java:48-50 returns OracleDialect; OracleTypeConverter.java:142-166 gives DECIMAL(min(p,38),0) for NUMBER(p) with p > 18. Correct. MySQL-mode TINYINT UNSIGNED -> SMALLINT matches OceanBaseMySqlTypeConverter.
  • DB2: DB2TypeConverter maps DECIMAL to DecimalType(precision, scale) and BIGINT to long. Correct.
  • OneSignal: HttpSourceOptions.java:108-112 default TEXT; no page_step key anywhere in connector-http. Correct.
  • Elasticsearch auth_type: AuthTypeEnum.API_KEY_ENCODED exists. Correct.
  • Pulsar StartMode (EARLIEST/LATEST/SUBSCRIPTION/TIMESTAMP) and cursor.reset.mode/cursor.startup.timestamp keys; RocketMQ START_MODE default CONSUME_FROM_GROUP_OFFSETS plus timestamp/specific-offset modes (RocketMqSourceOptions.java:50-56, RocketMqSourceFactory.java). Correct.
  • Airtable/GraphQL: SinkConnectorCommonOptions.MULTI_TABLE_SINK_REPLICA default 1 (SinkConnectorCommonOptions.java:31-34) and the added Airtable source options exist in the HTTP options. Correct.
  • Assert field_type accepts a string or a ConfigMap (AssertRuleParser.java:57-90); the comment column type is a string (AssertConfig.COLUMN_COMMENT). Correct.

Runtime path: not applicable (docs only).

Compatibility: fully compatible (documentation only).

Where I agree with @SEZ9 (please address these):

  • +1 Issue 1 (Medium): the where caution in docs/zh/connectors/source/InfluxDB.md (and the en copy) is only true for the single-table path; with tables_configs the factory throws (InfluxDBSourceFactory.java:125-127), and the split parser is case-insensitive there (InfluxDBSourceSplitEnumerator.java:175-178).
  • +1 Issues 2 and 3 (Medium): the new Greenplum sink table maps TIMESTAMPTZ to TIMESTAMP (PostgresTypeConverter.java:284-286 returns TIMESTAMP_TZ) and documents the read direction on a sink page.
  • +1 Issue 4 (Medium): JdbcSourceOptions.java:141-151 declares both bounds as stringType(), but only Vertica was changed; Mysql, PostgreSQL, Oracle, OceanBase, Kingbase, Redshift, HiveJdbc still say BigDecimal and SqlServer says Long (plus the #### partition_lower_bound [BigDecimal] headings). The pages now disagree with each other.
  • +1 Issues 5, 6, 8 (Low): UBIGINT lossy-mapping caveat; DuckDB TIMESTAMP WITH TIME ZONE row still wrong (DuckDBTypeConverter.java:172-173 returns OFFSET_DATE_TIME_TYPE) and bare DECIMAL default (18,3); DB2 SHORT/INTEGER are not SeaTunnel type names.
  • A small correction to Issue 7: the partition_num rows on Greenplum and Snowflake already say 10 (Greenplum.md:67, Snowflake.md:72), so only the prose line docs/en/connectors/source/Greenplum.md:73 ("according to partition_num or job parallelism") is stale. That line, and HiveJdbc.md:95, are outside this PR's files but cheap to fix here.

New finding (not in the earlier review)

  1. Medium - the OneSignal pagination example still does not paginate correctly. You removed the non-existent page_step, which is right, but the remaining example (docs/en/connectors/source/OneSignal.md:109-118, zh :109-118) uses page_field = "offset" with limit = "50". The HTTP source increments the page index by exactly 1 per request (HttpSourceReader.java:433-441; HttpSource.java:80-96 only reads total_page_size, start_page_number, page_field, use_placeholder_replacement). So the job requests offsets 0,1,2,...,9 with a window of 50 rows: ten heavily overlapping windows, 500 rows read but only 59 distinct, with no error. OneSignal offset is a record offset, not a page number.

2. Code quality

  • Comments/standards: not applicable (no code).
  • Test coverage / stability: not applicable. Fork CI for this head (feb6a04) is green: Code style, License header, Dead links, Build website, Sanity check, Helm render.
  • Docs en/zh: both languages are updated in tandem and the zh-only gaps are filled (InfluxDB examples, ObsFile duplicate row). One parity note: the Greenplum zh table already existed, so only en gains the new section; please make sure both versions end up identical after the Greenplum fix above.

3. Architecture

  • Precise fix versus workaround: precise, evidence-based corrections.
  • Maintainability: the repeated drift between JDBC dialect pages comes from copy-pasted option tables. Longer term, linking the shared JDBC options to Jdbc.md (which already documents partition_num default 10 and the string bounds, Jdbc.md:171-172) would prevent this class of drift; not required for this PR.
  • Historical compatibility: nothing to preserve beyond making the docs accurate.

4. Issue summary

# Severity Location Problem Suggested fix
1 Medium docs/en/connectors/source/OneSignal.md:109-118, zh same lines Pagination example sends offset=0,1,2,... with limit=50 (page index increments by 1), producing overlapping windows and duplicate rows. Either drop pageing from the example and show a single request, or use an API parameter that is a real page number; add one sentence that pageing advances by 1 and cannot express a stride.
2 Medium InfluxDB.md (zh :167, en :177-184) +1 SEZ9 Issue 1: where caution wrong for tables_configs. Describe both modes.
3 Medium Greenplum.md sink (en :53-66, zh :53-67) +1 SEZ9 Issues 2-3: TIMESTAMPTZ row wrong, table direction is read not write. Split the row; use reconvert() mapping or move the table to the source page.
4 Medium Mysql/PostgreSQL/Oracle/OceanBase/Kingbase/Redshift/HiveJdbc/SqlServer source pages +1 SEZ9 Issue 4: bounds are stringType(); only Vertica fixed. Update the remaining pages (en + zh) in this PR.
5 Low DuckDB source/sink pages +1 SEZ9 Issues 5-6: UBIGINT caveat, TZ row, bare DECIMAL default, missing TIMESTAMP_TZ sink row. Add rows/notes.
6 Low DB2.md (en :54-55, zh same) +1 SEZ9 Issue 8: SHORT/INTEGER are not SeaTunnel type names. Use SMALLINT/INT.
7 Low Greenplum.md:73, HiveJdbc.md:95 Stale "job parallelism" wording for partition_num. Say default 10.

5. Merge recommendation

Ready to merge after fixes.

  • Blockers (non-CI): the four Medium items above (my Issue 1 plus the three still open from @SEZ9's review). All are small, doc-only edits.
  • Non-blocking: Low items.
  • CI diagnosis: real fork run https://github.com/zhangshenghang/seatunnel/actions/runs/37653258306 is fully green for head feb6a04 (the heavy jobs are skipped because only docs changed, which is expected).
  • Mergeability: mergeable, no conflicts; 16 commits behind dev, please sync before merging.

Thanks again for the thorough work.

# Conflicts:
#	docs/en/connectors/sink/Assert.md
#	docs/zh/connectors/sink/Assert.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.

Hi @zhangshenghang, thank you for keeping this docs audit moving and for syncing the branch with the latest dev. I re-read the whole PR from scratch at the current head 83374af1646a (a merge of origin/dev on top of feb6a04), and re-checked each finding from my previous review and from @SEZ9's review against the current code.

(Static review only. I did not run anything; this is docs-only.)

Status of the previous round: the new head contains no content changes from you, only the dev merge. As a result, none of the findings from the last review is resolved yet. The good news is that every item is a small doc-only edit. One side effect of the merge: the Assert field_type/comment rows and the OneSignal format default are now already on dev, so they drop out of this PR's diff (42 files became 40). The PR description still lists them, so you may want to refresh it.

What Problem Does This PR Solve?

  • Pain point: connector docs drifted from the code (wrong defaults, type mappings, placeholders, option tables), and several zh pages lagged behind en.
  • Fix approach: correct the doc text and tables from the Java sources (Options, OptionRule, type converters, placeholders) and port the missing zh sections.
  • One-sentence summary: make the connector pages say what the code actually does, in both languages.

1. Code Change Review

1.1 Core Logic Analysis

No production code changes. Because this is docs-only, I verified the claims instead of reviewing logic. Claims re-checked against the current head:

  • partition_num default 10: JdbcSourceTableConfig applies DEFAULT_PARTITION_NUMBER = 10 when the option is null. Correct on Mysql, PostgreSQL, SqlServer, OceanBase, Redshift, Vertica (table cells and prose).
  • DuckDB source mapping: DuckDBTypeConverter.convert() maps unsigned ints to the signed SeaTunnel type, HUGEINT/UHUGEINT/BIGNUM to DECIMAL(38,0), ARRAY/STRUCT/MAP to STRING, and caps DECIMAL at 38. Correct.
  • DuckDB sink mapping: reconvert() keeps TINYINT/SMALLINT and has no ARRAY/ROW/MAP case; the default branch throws convertToConnectorTypeError. Correct.
  • Datahub placeholders: substitution is done by the generic multi-table placeholder mechanism whose keys are table_name, table_full_name, database_name, ...; ${table} is not a key. Your correction is right and the old example would not route.
  • OceanBase Oracle mode (DECIMAL(min(p,38),0) for NUMBER(p), p > 18), DB2 BIGINT/DECIMAL(p,s), Elasticsearch api_key_encoded, Pulsar/RocketMQ startup modes, Airtable/GraphQL multi_table_sink_replica default 1, Vertica sink without XA: all consistent with the source.

Runtime path: not applicable (docs only). The normal user path is the reader of these pages, so the question is whether each statement is true for the mode the reader will use; the open items below are cases where it is true for one mode only, or true for the wrong direction.

1.2 Compatibility Impact

Fully compatible (documentation only).

1.3 Performance / Side-Effect Analysis

None. No runtime, config, or dependency change.

1.4 Error Handling and Logging

Not applicable to code. The documentation accuracy issues are listed below. Issues 2 to 7 were first raised by @SEZ9 (flagged "Yes"); I re-verified each against the current head and they all still reproduce.

Issue 1: OneSignal pagination example still produces overlapping windows (carryover from my previous review, still open)

  • Location: docs/en/connectors/source/OneSignal.md:109-117 and the same lines in docs/zh/connectors/source/OneSignal.md
  • Problem description: removing the non-existent page_step is right, but the remaining example still uses page_field = "offset" with limit = "50" and start_page_number = 0. The HTTP source advances the page index by exactly 1 per request (HttpSourceReader.java:434-440, pageIndex += 1), so it requests offsets 0, 1, 2, ..., 9 with a window of 50 rows.
  • Potential risk: users copying the example read 500 rows but only about 59 distinct ones, silently, with no error. OneSignal offset is a record offset, not a page number.
  • Best improvement: drop pageing from this example and show a single request, or pick an API parameter that is a real page number, and add one sentence that pageing advances by 1 and cannot express a stride.
  • Severity: Medium
  • Raised by another reviewer: No

Issue 2: zh InfluxDB source where caution is only true for the single-table path

  • Location: docs/zh/connectors/source/InfluxDB.md:162-173 (the same caution text exists on dev in the en page, docs/en/connectors/source/InfluxDB.md, so it is worth fixing both in this PR)
  • Problem description: the new block says where has no effect, the split parser is case-sensitive, and only optionRule() references the option. With tables_configs, InfluxDBSourceFactory.buildTables() throws OptionValidationException when where is set (InfluxDBSourceFactory.java:125-127), and the tables_configs split path uses sql.split("(?i)\\s+where\\s+", 2), which is case-insensitive (InfluxDBSourceSplitEnumerator.java:177-178). The case-sensitive sql.split(SQL_WHERE.key()) is used only for the single-table path.
  • Potential risk: tables_configs users see a hard validation error instead of a no-op, and may needlessly rewrite uppercase WHERE.
  • Best improvement: describe the two modes separately.
  • Severity: Medium
  • Raised by another reviewer: Yes (@SEZ9 Issue 1)

Issue 3: New Greenplum sink "Data Type Mapping" table is wrong for TIMESTAMPTZ and is in the read direction on a sink page

  • Location: docs/en/connectors/sink/Greenplum.md:49-67, docs/zh/connectors/sink/Greenplum.md:53-67
  • Problem description: TIMESTAMP / TIMESTAMPTZ | TIMESTAMP is incorrect, because PostgresTypeConverter maps timestamptz to OFFSET_DATE_TIME_TYPE, i.e. TIMESTAMP_TZ (PostgresTypeConverter.java:284-286), and Greenplum reuses that converter. The header is Greenplum Data Type | SeaTunnel Data Type, which is the convert() (read) direction, while a sink user needs reconvert(). In reconvert() a DECIMAL only becomes money when the source type was already money (lines 361-363), otherwise numeric(p,s), so MONEY | DECIMAL(30,2) misleads on a sink page.
  • Potential risk: sink users expect DECIMAL(30,2) to land as MONEY and TIMESTAMP_TZ to be documented.
  • Best improvement: split the timestamp row (TIMESTAMP -> TIMESTAMP, TIMESTAMPTZ -> TIMESTAMP_TZ), and either flip the table to SeaTunnel Data Type | Greenplum Data Type derived from reconvert() or move it to the source page and link it. Keep en and zh identical.
  • Severity: Medium
  • Raised by another reviewer: Yes (@SEZ9 Issues 2 and 3)

Issue 4: partition_lower_bound / partition_upper_bound types are only fixed on Vertica

  • Location: docs/en/connectors/source/Mysql.md:81-82 and :167, PostgreSQL.md:92-93 and :156, OceanBase.md:94, Redshift.md:60, SqlServer.md:85-86 and :152 (en and zh)
  • Problem description: JdbcSourceOptions.PARTITION_LOWER_BOUND/PARTITION_UPPER_BOUND are stringType() and shared by every JDBC dialect. This PR changes only Vertica to String; the pages above, edited in this same PR for partition_num, still say BigDecimal (SqlServer says Long). Oracle and HiveJdbc, which are outside this PR's file list, also say BigDecimal (Oracle.md:75,165, HiveJdbc.md:82).
  • Potential risk: the JDBC pages now contradict each other about one option.
  • Best improvement: update the remaining pages (en and zh) to String, including the #### partition_lower_bound [BigDecimal] prose headings.
  • Severity: Medium
  • Raised by another reviewer: Yes (@SEZ9 Issue 4)

Issue 5: DuckDB source/sink tables still have gaps

  • Location: docs/en/connectors/source/DuckDB.md:63,68,73, docs/en/connectors/sink/DuckDB.md:54-68 (and zh)
  • Problem description: (a) UBIGINT -> BIGINT is lossy above Long.MAX_VALUE and the old DECIMAL(20,0) hint was removed without a caveat; (b) TIMESTAMP WITH TIME ZONE -> TIMESTAMP is still wrong, since DuckDBTypeConverter.java:172-173 returns OFFSET_DATE_TIME_TYPE (TIMESTAMP_TZ), and the sink table lacks the TIMESTAMP_TZ -> TIMESTAMP WITH TIME ZONE row that reconvert() implements; (c) a bare DECIMAL falls back to DECIMAL(18,3) (DEFAULT_PRECISION/DEFAULT_SCALE), and the <38 / > 38 pair leaves precision == 38 unstated.
  • Potential risk: users get wrong type expectations in a table the PR is explicitly meant to make correct.
  • Best improvement: add the caveat, fix the TZ row, add the sink TZ row and the default DECIMAL row (en and zh).
  • Severity: Low
  • Raised by another reviewer: Yes (@SEZ9 Issues 5 and 6)

Issue 6: DB2 source table mixes SeaTunnel names with Java names

  • Location: docs/en/connectors/source/DB2.md:54-55 and the same rows in zh
  • Problem description: BIGINT was fixed, but SMALLINT -> SHORT and INT/INTEGER -> INTEGER remain. DB2TypeConverter maps them to SHORT_TYPE/INT_TYPE, whose SeaTunnel names are SMALLINT and INT.
  • Potential risk: the column is titled "SeaTunnel Data Type" but SHORT/INTEGER are not valid SeaTunnel type names, so users cannot copy them into schema.fields.
  • Best improvement: use SMALLINT and INT.
  • Severity: Low
  • Raised by another reviewer: Yes (@SEZ9 Issue 8)

Issue 7: Stale "job parallelism" wording for partition_num outside the edited pages

  • Location: docs/en/connectors/source/Greenplum.md:73 ("according to partition_num or job parallelism") and docs/en/connectors/source/HiveJdbc.md:95
  • Problem description: the Greenplum and Snowflake option rows already say 10, but the Greenplum prose line and the HiveJdbc note still refer to job parallelism.
  • Potential risk: the mismatch this PR fixes remains for these two pages.
  • Best improvement: reword to the default of 10 (en and zh where present).
  • Severity: Low
  • Raised by another reviewer: Yes (@SEZ9 Issue 7, partly)

2. Code Quality Assessment

2.1 Coding Standards

No code changes. The docs edits are well scoped, with no whitespace-only churn.

2.2 Test Coverage and Test Stability

No tests changed, so no test-stability concern. Fork CI for the current head is green (Build and Notify test workflow succeeded; the heavy jobs are skipped for a docs-only change, which is expected).

2.3 Documentation Updates

Both docs/en and docs/zh are updated in tandem and the zh-only gaps are filled (InfluxDB examples, ObsFile duplicate row). Please keep the Greenplum en and zh tables identical after the fix for Issue 3.

3. Architectural Soundness

3.1 Elegance

Precise fix: evidence-based corrections, each tied to a source location.

3.2 Maintainability

The recurring drift between JDBC dialect pages comes from copy-pasted option tables. Longer term, linking shared JDBC options to Jdbc.md would prevent this class of drift; not required for this PR.

3.3 Extensibility

Not applicable.

3.4 Historical-Version Compatibility

Nothing to preserve beyond making the docs accurate.

4. Issue Summary

Number Issue Location Severity
1 OneSignal pagination example reads overlapping windows OneSignal.md:109-117 (en, zh) Medium
2 InfluxDB where caution wrong for tables_configs InfluxDB.md (zh :162-173, en copy) Medium
3 Greenplum sink table: TIMESTAMPTZ row wrong, read direction on sink page Greenplum.md sink (en :49-67, zh :53-67) Medium
4 Bound types only fixed on Vertica Mysql/PostgreSQL/OceanBase/Redshift/SqlServer (plus Oracle, HiveJdbc) Medium
5 DuckDB UBIGINT caveat, TZ row, default DECIMAL DuckDB source/sink (en, zh) Low
6 DB2 SHORT/INTEGER are not SeaTunnel type names DB2.md:54-55 (en, zh) Low
7 Stale "job parallelism" wording Greenplum.md:73, HiveJdbc.md:95 Low

5. Merge Recommendation

Conclusion: Ready to merge after fixes

  1. Blockers - must be fixed
    • Issues 1 to 4 (all Medium, all small doc-only edits).
  2. Recommended fixes - non-blocking
    • Issues 5 to 7 (Low).
    • Refresh the PR description, since the Assert and OneSignal format fixes are now on dev.

Overall assessment: the corrections that are already in the PR are accurate and valuable (partition_num default, DuckDB mappings, Datahub placeholders, OceanBase/DB2/Vertica fixes). The branch is already synced with dev, mergeable with no conflicts, and fork CI is green; the PR is waiting only on the doc fixes above and a fresh review. Alternative considered: splitting the Greenplum type-mapping addition into its own PR so the rest can merge sooner; that is optional, and fixing it in place is also fine.

Regarding the existing review state: my previous CHANGES_REQUESTED stands until Issues 1 to 4 are addressed, and @SEZ9's review of the same findings is consistent with this one. Thanks again for the thorough work, and ping me once the fixes are pushed and I will re-check right away.

…, Greenplum sink mapping and JDBC partition bound types

- Drop pageing from the OneSignal example: the HTTP source advances the
  page index by exactly 1, which overlaps windows for a record-offset
  field; a note explains the limitation.
- Describe the InfluxDB where caveat separately for single-table mode
  (no effect, case-sensitive parser) and tables_configs mode (rejected at
  build time, case-insensitive parser).
- Flip the Greenplum sink type table to the sink direction derived from
  PostgresTypeConverter.reconvert, split TIMESTAMP/TIMESTAMPTZ, and note
  that DECIMAL lands as NUMERIC(p,s), not MONEY.
- Change partition_lower_bound/partition_upper_bound to String on the
  Mysql, PostgreSQL, OceanBase, Redshift and SqlServer pages (en and zh),
  including the prose headings, matching JdbcSourceOptions.
@zhangshenghang

Copy link
Copy Markdown
Member Author

The four blocking issues are addressed in 27297d2:

  1. OneSignal example (en+zh): pageing is dropped and the example shows a single request; a note states that pageing advances the page index by exactly 1 per request and cannot express a stride, and that OneSignal's offset is a record offset (so combining them reads overlapping windows).
  2. InfluxDB where caution (zh fix + en updated too, as suggested): the two modes are described separately — single-table sql mode: where has no effect and the split parser is case-sensitive; tables_configs mode: where fails at build time with OptionValidationException and the split parser is case-insensitive.
  3. Greenplum sink type table (en+zh): flipped to the sink direction derived from PostgresTypeConverter.reconvert — TIMESTAMP and TIMESTAMPTZ are separate rows (TIMESTAMP(p) / TIMESTAMPTZ(p)), STRING shows TEXT/VARCHAR(n), TINYINT joins SMALLINT, and the table note explains that DECIMAL lands as NUMERIC(p, s) while MONEY only occurs on round-trip of an already-money source column.
  4. partition bound types: partition_lower_bound/partition_upper_bound changed to String on the Mysql, PostgreSQL, OceanBase, Redshift and SqlServer pages in both languages, including the #### partition_lower_bound [String] prose headings, matching JdbcSourceOptions.

The Low items (5-7) and the description refresh are still open, left for a follow-up round.

@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.

Hi @zhangshenghang, thanks for the quick follow-up commit 27297d2 and for the clear summary comment. This is a re-review of the delta since my last review (head 83374af). The delta is docs only (16 files, +86/-74). I re-checked each of the four blockers against the source and the final rendered files. Three of them are fully fixed; the fourth is almost there, and my check also found one small leftover that the Greenplum rewrite introduced in the zh page.

What Problem Does This PR Solve?

  • Pain point: connector docs drifted from the code (defaults, type mappings, placeholders, option tables) and several zh pages lagged behind en.
  • Fix approach: correct text and tables from the Java sources and port missing zh sections.
  • One sentence: make the connector pages say what the code actually does, in both languages.

1. Code Change Review

1.1 Core logic: status of my previous blockers

Previous item What the new commit does Verified against source Status
1 (Medium) OneSignal pagination example pageing removed from the example (en and zh); a note explains that pageing advances the page index by exactly 1 and that OneSignal offset is a record offset Consistent with the HTTP source page-index increment I traced earlier Resolved
2 (Medium) InfluxDB where caution Single-table and tables_configs modes are now described separately (en and zh) InfluxDBSourceFactory.buildTables() throws OptionValidationException when root-level where is present; the split parsers differ in case sensitivity Resolved, with a small wording nit (Issue 3)
3 (Medium) Greenplum sink type table Flipped to the sink direction; TIMESTAMP -> TIMESTAMP(p) and TIMESTAMP_TZ -> TIMESTAMPTZ(p) split; STRING -> TEXT / VARCHAR(n); note about MONEY PostgresTypeConverter.reconvert() on dev: TINYINT/SMALLINT -> smallint, INT -> integer, FLOAT -> real, DOUBLE -> double precision, DECIMAL -> numeric(p,s) (money only if source type was money), STRING -> text or varchar(n), TIME(p), TIMESTAMP(p), TIMESTAMP_TZ -> timestamptz(p), BYTES -> bytea. All rows match Content resolved; a stray line is left in the zh page (Issue 1)
4 (Medium) partition bound types String on Mysql, PostgreSQL, OceanBase, Redshift, SqlServer, including the #### ... [String] headings, zh and en JdbcSourceOptions declares both bounds as stringType() Mostly resolved; en SqlServer table rows still say Long (Issue 2)

1.2 Compatibility

Fully compatible. Documentation only; no code, option, default or format change.

1.3 Performance / side effects

None.

1.4 Error handling and logging, and open issues

Not applicable to code. Documentation issues:

Issue 1: stray table row left in the zh Greenplum sink page

  • Location: docs/zh/connectors/sink/Greenplum.md:68-69 (the line | BYTEA | BYTES | directly after the sink-direction note)
  • Problem: when the table was rewritten, the old last row | BYTEA | BYTES | was not removed. It now sits after the explanatory paragraph, outside the table, so it renders as a literal line of pipes in the middle of the page. It also contradicts the new table (the sink direction is BYTES -> BYTEA) and makes zh differ from en, which does not have it.
  • Potential risk: visibly broken rendering and a reversed mapping for readers of the zh page.
  • Best improvement: delete that one line.
  • Severity: Medium (one-line fix)
  • Raised by another reviewer: No

Issue 2: en SqlServer partition bound rows still say Long

  • Location: docs/en/connectors/source/SqlServer.md:85-86 (the zh page was fixed at docs/zh/connectors/source/SqlServer.md:82-83)
  • Problem: the en option table still lists partition_lower_bound / partition_upper_bound as Long, while the prose headings below (:148, :152) now say String and the zh table says String. JdbcSourceOptions declares both as stringType().
  • Potential risk: the en page contradicts itself, contradicts zh, and Long suggests decimal or string bounds are rejected.
  • Best improvement: change the two table cells to String.
  • Severity: Medium (this was the "SqlServer says Long" part of my previous Issue 4; en/zh parity)
  • Raised by another reviewer: Yes (SEZ9 Issue 4, which also named the SqlServer Long rows)

Issue 3: InfluxDB wording says where is rejected "in a table entry"

  • Location: docs/en/connectors/source/InfluxDB.md:179-184, docs/zh/connectors/source/InfluxDB.md:168-172
  • Problem: the check in InfluxDBSourceFactory.buildTables() fires when a root-level where option is set together with tables_configs; its message says to put each WHERE predicate inside that entry's sql. A where key inside a table entry is not what is rejected.
  • Potential risk: small; a reader could put where in an entry and expect the error, or put it at root level and not realize that is the case being rejected.
  • Best improvement: say "a root-level where option together with tables_configs fails at build time; put the predicate inside each entry's sql".
  • Severity: Low
  • Raised by another reviewer: No

Issue 4 (carryover, Low): same bound-type mismatch outside the edited files

  • Location: Oracle.md and HiveJdbc.md (and Kingbase if present) still say BigDecimal for the bounds (en and zh where present).
  • Best improvement: switch them to String in this PR or a short follow-up.
  • Severity: Low
  • Raised by another reviewer: Yes (SEZ9 Issue 4, my previous Issue 4)

Issues 5 to 7 (carryover, Low, still open and explicitly deferred by the author): DuckDB source/sink gaps (UBIGINT lossy caveat, TIMESTAMP WITH TIME ZONE row, bare DECIMAL default, sink TIMESTAMP_TZ row), DB2 SHORT/INTEGER rows, and the stale "or job parallelism" wording at docs/en/connectors/source/Greenplum.md:73 and HiveJdbc.md:95. All are non-blocking.

2. Code Quality Assessment

  • 2.1 Standards: tables are readable; no whitespace-only churn beyond the re-aligned cells.
  • 2.2 Tests: none apply. Rating: Stable. CI on head 27297d2: Build success, Notify test workflow success, labeler success. The PR is 10 commits behind dev; there are no conflicts and CI is green, so a sync is not required.
  • 2.3 Docs en/zh: nearly in sync; the two gaps are Issue 1 (zh-only stray line) and Issue 2 (en-only Long).

3. Architectural Soundness

Precise, evidence-based corrections. The sink-direction Greenplum table now follows reconvert() exactly, which is the right source of truth for a sink page.

4. Issue Summary

# Location Problem Severity
1 docs/zh/connectors/sink/Greenplum.md:69 Stray | BYTEA | BYTES | line after the table (wrong direction, zh differs from en) Medium
2 docs/en/connectors/source/SqlServer.md:85-86 Bound types still Long in the option table Medium
3 InfluxDB.md (en :179-184, zh :168-172) where rejection described as "in a table entry"; actually root-level where with tables_configs Low
4 Oracle.md, HiveJdbc.md Bounds still BigDecimal Low
5 DuckDB source/sink UBIGINT caveat, TZ rows, bare DECIMAL default Low
6 DB2.md:54-55 SHORT / INTEGER are not SeaTunnel type names Low
7 Greenplum.md:73, HiveJdbc.md:95 Stale "job parallelism" wording Low

5. Merge Recommendation

Conclusion: Ready to merge after fixes

  1. Blockers (non-CI): Issue 1 and Issue 2. Both are one-line or two-cell edits.
  2. Non-blocking: Issues 3 to 7.

CI is green on the current head and there are no merge conflicts, so once these two small edits land I expect to approve right away. Thank you for the careful and responsive work.

…erver bound types

- Remove the old '| BYTEA | BYTES |' line left outside the rewritten zh
  Greenplum sink table (it rendered as literal pipes and reversed the
  mapping).
- Change the en SqlServer partition_lower_bound/upper_bound table cells to
  String, matching JdbcSourceOptions, the zh page and the prose headings.
@zhangshenghang

Copy link
Copy Markdown
Member Author

Both blockers are fixed in 8602201:

  1. The stray | BYTEA | BYTES | line after the rewritten zh Greenplum table is removed — my earlier regex window covered twelve data rows while the zh table had thirteen, leaving the old last row dangling after the note.
  2. The en SqlServer partition_lower_bound/partition_upper_bound cells are now String (the cell padding after Long defeated the earlier substitution pattern); the headings and zh page already said String.

@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.

Hi @zhangshenghang, thank you for the fast turnaround on commit 8602201 and for the clear explanation of why the earlier regex substitutions missed those two spots. I re-read the whole PR at the current head 8602201e098e (the previous review covered 27297d2f8473) and re-checked both of my blockers against the final files.

(Static review only. I did not build or run anything; this PR is documentation only.)

What Problem Does This PR Solve?

  • Pain point: connector docs drifted from the code (defaults, type mappings, placeholders, option tables), and several zh pages lagged behind en.
  • Fix approach: correct text and tables from the Java sources (Options, OptionRule, type converters, placeholders) and port the missing zh sections.
  • One sentence: make the connector pages say what the code actually does, in both languages.

1. Code Change Review

1.1 Core Logic Analysis

No production code changes. The delta since my last review is two files, +2/-3:

Previous blocker What the new commit does Verified Status
Issue 1: stray | BYTEA | BYTES | line after the zh Greenplum sink table Line removed from docs/zh/connectors/sink/Greenplum.md; the table now ends at BYTES | BYTEA followed only by the sink-direction note git grep for BYTEA | BYTES in that file returns 0 matches; the table has 13 sink-direction rows matching PostgresTypeConverter.reconvert Resolved
Issue 2: en SqlServer partition_lower_bound / partition_upper_bound typed Long Both table cells (docs/en/connectors/source/SqlServer.md:85-86) now say String Matches the #### ... [String] headings (:148, :152), the zh table (docs/zh/connectors/source/SqlServer.md:82-83) and JdbcSourceOptions (stringType()) Resolved

The bound type is now consistently String on Mysql, PostgreSQL, OceanBase, Redshift, Vertica and SqlServer (en and zh); I found no remaining Long/BigDecimal for these two options in those pages.

1.2 Compatibility Impact

Fully compatible. Documentation only; no code, option, default or format change.

1.3 Performance / Side-Effect Analysis

None.

1.4 Error Handling and Logging

Not applicable to code. Remaining documentation items are all non-blocking (see the summary).

2. Code Quality Assessment

  • 2.1 Coding standards: tables are readable and consistent between en and zh; no unrelated churn in the new commit.
  • 2.2 Test coverage and stability: no tests apply. Stability rating: Stable. Checks on the current head: Build SUCCESS, Notify test workflow SUCCESS, labeler SUCCESS.
  • 2.3 Documentation: en/zh parity for the two items I raised is restored.

3. Architectural Soundness

  • 3.1 Elegance: precise, source-backed corrections (Precise fix).
  • 3.2 Maintainability: the sink-direction Greenplum table now follows reconvert(), the right source of truth for a sink page.
  • 3.3 Extensibility: not applicable.
  • 3.4 Historical-version compatibility: no behavior change.

4. Issue Summary

No blocking issues found. Carryover, non-blocking (all Low, none new in this round):

# Location Problem Severity
1 docs/en/connectors/source/InfluxDB.md:179-184, docs/zh/connectors/source/InfluxDB.md:168-172 Wording says where is rejected "in a table entry"; the factory check fires for a root-level where combined with tables_configs (put the predicate inside each entry's sql) Low
2 Oracle.md, HiveJdbc.md (and Kingbase if present) Partition bounds still BigDecimal; can be a short follow-up Low
3 DuckDB source/sink pages UBIGINT lossy caveat, TIMESTAMP WITH TIME ZONE row, bare DECIMAL default, sink TIMESTAMP_TZ row Low
4 DB2.md:54-55 SHORT / INTEGER are not SeaTunnel type names Low
5 docs/en/connectors/source/Greenplum.md:73, HiveJdbc.md:95 Stale "or job parallelism" wording for partition_num Low

5. Merge Recommendation

Conclusion: Ready to merge

Blockers: none. Both blockers from my last review are fixed, and the Build check is green on this head. The PR is mergeable with no conflicts; it is behind dev, which is metadata only and does not require a sync.

Recommended non-blocking: the five carryover items above, ideally the InfluxDB wording and the Oracle.md/HiveJdbc.md bound types, either here or in a short follow-up.

Overall: a careful, evidence-driven docs audit. Because the blockers from my earlier round are cleared, I am approving. My earlier CHANGES_REQUESTED review remains visible on the PR; I do not have write-level review controls, so a maintainer with write access can do the final approval or dismissal. Thank you again for the thorough work!

# Conflicts:
#	docs/en/connectors/source/Pulsar.md
#	docs/zh/connectors/source/Pulsar.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.

Hi @zhangshenghang, thank you for the careful docs audit and for keeping the branch in sync. This is a full re-review of the latest head 6e1ed628b404. My previous review covered 8602201e098e; the only change since then is a merge of dev (the Pulsar en/zh conflict was resolved by taking dev's content, so Pulsar is no longer part of this PR's diff). I re-read the current 38-file diff against the Java sources.

(Static review only. I did not build or run anything; this PR changes documentation only.)

What Problem Does This PR Solve?

  • Pain point: connector pages had drifted from the code: partition_num default, DuckDB/DB2/OceanBase/Vertica type tables, the Datahub ${table} placeholder, the Vertica XA claim, missing Airtable/GraphQL options, and zh pages lagging behind en.
  • Fix approach: correct each claim from JdbcSourceOptions, JdbcSourceTableConfig, DuckDBTypeConverter, PostgresTypeConverter, TablePlaceholder and the factory option rules, and port the missing zh sections.
  • One sentence: make the connector docs say what the code does, in both languages.

1. Code Change Review

1.1 Core Logic Analysis

No production code is touched. Spot checks against the current tree:

  • partition_num default 10: JdbcSourceTableConfig.DEFAULT_PARTITION_NUMBER = 10, applied when the partition number is null (JdbcSourceTableConfig.java:98). Matches the edited Mysql/PostgreSQL/SqlServer/OceanBase/Redshift/Vertica pages.
  • partition_lower_bound / partition_upper_bound as String: JdbcSourceOptions declares both with stringType() (lines 141-151). Matches the edited pages.
  • DuckDB source table: UTINYINT/USMALLINT/UINTEGER/UBIGINT map to BYTE/SHORT/INT/LONG, HUGEINT to DECIMAL(38,0), ARRAY/STRUCT/MAP to STRING, and decimals above 38 are clamped (DuckDBTypeConverter.java, convert and handleDecimalType). The rewritten rows are correct.
  • Datahub: ${table_name} and ${table_full_name} are the real placeholders (TablePlaceholder); the ${table} example would not resolve, so the fix is right.
  • RocketMQ: start.mode values and the CONSUME_FROM_GROUP_OFFSETS default in the option table match the new FAQ text.
  • Prior-round fixes (OneSignal single-request example, Greenplum sink direction table, zh stray row, SqlServer bound types) are all still in place.

1.2 Compatibility Impact

Fully compatible. Documentation only; no option, default, or runtime behavior change.

1.3 Performance / Side-Effect Analysis

None.

1.4 Error Handling and Logging

Not applicable to code. The remaining items are documentation accuracy only. All are carryovers from my earlier rounds and all are non-blocking.

Issue 1: InfluxDB where caution wording (carryover)

  • Location: docs/en/connectors/source/InfluxDB.md:177-184, docs/zh/connectors/source/InfluxDB.md:168-172
  • Problem description: the text says where "in a table entry" fails; the factory check in InfluxDBSourceFactory.buildTables() fires on a root-level where combined with tables_configs.
  • Potential risk: a user may move a predicate between places expecting a different outcome.
  • Best improvement: say that a root-level where together with tables_configs is rejected, and the predicate belongs inside each entry's sql.
  • Severity: Low
  • Raised by another reviewer: No (my earlier round)

Issue 2: Partition bound type still BigDecimal on sibling pages (carryover)

  • Location: docs/en/connectors/source/Oracle.md:75-76,161,165, docs/en/connectors/source/HiveJdbc.md:82-83 (and zh counterparts)
  • Problem description: same JdbcSourceOptions string type, same drift this PR fixed on six other pages.
  • Potential risk: inconsistent docs across JDBC pages.
  • Best improvement: change them here or in a short follow-up.
  • Severity: Low
  • Raised by another reviewer: No

Issue 3: Remaining DuckDB table gaps (carryover)

  • Location: docs/en/connectors/source/DuckDB.md (type table), docs/en/connectors/sink/DuckDB.md (type table), and zh
  • Problem description: (a) TIMESTAMP WITH TIME ZONE is still listed under TIMESTAMP, but convert maps it to OFFSET_DATE_TIME (TIMESTAMP_TZ); (b) the sink table has no TIMESTAMP_TZ row although reconvert handles it; (c) HUGEINT omits UHUGEINT/BIGNUM, which map to DECIMAL(38,0) too; (d) the decimal rows use <38 and >38, leaving precision exactly 38 uncovered.
  • Potential risk: users mapping time-zone columns or 38-digit decimals get a wrong expectation, in the very table this PR set out to make accurate.
  • Best improvement: fix row (a) and add the missing rows; use <=38 for the pass-through rule.
  • Severity: Low
  • Raised by another reviewer: No

Issue 4: DB2 source uses non-SeaTunnel type names (carryover)

  • Location: docs/en/connectors/source/DB2.md:54-55
  • Problem description: the right-hand column lists SHORT and INTEGER; the SeaTunnel names are SMALLINT and INT. This PR fixed LONG to BIGINT two rows below.
  • Potential risk: cosmetic inconsistency inside the same table.
  • Best improvement: rename the two cells.
  • Severity: Low
  • Raised by another reviewer: No

Issue 5: Stale "job parallelism" wording for partition_num (carryover)

  • Location: docs/en/connectors/source/Greenplum.md:73, docs/en/connectors/source/HiveJdbc.md:95
  • Problem description: prose still ties split count to job parallelism, while the effective default is 10.
  • Potential risk: low; users may misjudge parallelism.
  • Best improvement: align the sentence with the new default.
  • Severity: Low
  • Raised by another reviewer: No

SEZ9's earlier comment review covered the first commit; its actionable points were folded into the rounds above, and I have nothing further to add beyond them.

2. Code Quality Assessment

2.1 Coding Standards

Tables are readable; changes are real content fixes with little formatting churn. The Mysql table cells for the bound options lost their padding alignment (String in a BigDecimal-width cell), which is harmless in rendered Markdown.

2.2 Test Coverage and Test Stability

No tests apply. CI on this head: Build pass, Signal pull request update pass. Rating: Stable. I did not run anything locally.

2.3 Documentation (en/zh parity)

The 38 files are 19 en and 19 zh. Content fixes are mirrored where both languages have the page; the intentional asymmetries are Elasticsearch and RocketMQ (en only in this diff) and zh InfluxDB sink (the zh page gained the example that en already had). The InfluxDB wording (Issue 1) is the same in both languages and should be fixed in both.

3. Architectural Soundness

  • 3.1 Precise fix / Temporary workaround / Long-term solution: precise, source-backed corrections. Not a workaround.
  • 3.2 Maintainability: improves maintainability; the Greenplum sink table follows reconvert() (the right direction for a sink page).
  • 3.3 Extensibility: not applicable. A follow-up sweep over the other JDBC pages (Issues 2 and 5) would finish the cleanup.
  • 3.4 Historical-version compatibility: no behavior change; no upgrade impact.

4. Issue Summary

Number Issue Location Severity
1 InfluxDB where caution wording InfluxDB.md (en 177-184, zh 168-172) Low
2 Partition bounds still BigDecimal Oracle.md, HiveJdbc.md Low
3 DuckDB table gaps (TIMESTAMP_TZ, UHUGEINT/BIGNUM, precision 38) DuckDB source/sink pages Low
4 DB2 SHORT / INTEGER names DB2.md:54-55 Low
5 Stale "job parallelism" wording Greenplum.md:73, HiveJdbc.md:95 Low

5. Merge Recommendation

Conclusion: Ready to merge

Blockers: none. The doc claims I re-verified against source are accurate, the blockers from earlier rounds remain fixed, and Build is green on this head.

Non-blocking fixes: Issues 1-5 above, either in this PR or a short follow-up.

Overall assessment: a thorough, evidence-driven docs correction that makes several connector pages materially more accurate. The merge of dev only changed Pulsar, which dropped out of the diff, and introduced no regressions I could find.

Alternatives: none needed; splitting by connector would not reduce risk for a docs-only change.

Thank you again for the thorough work!

# Conflicts:
#	docs/en/connectors/sink/DuckDB.md
#	docs/en/connectors/source/DuckDB.md
#	docs/zh/connectors/sink/DuckDB.md
#	docs/zh/connectors/source/DuckDB.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.

Hi @zhangshenghang, thank you for keeping this docs audit in sync with dev. This is a full re-review of the current head 511d80934ed. My previous review covered 6e1ed628b404. The only change since then is another merge of dev, and no file of yours changed content. As a side effect of the merge, the DuckDB source/sink pages (en and zh) and a few other pages already landed on dev through #12951, so they dropped out of this PR's diff. The diff is now 34 files (17 en, 17 zh).

(Static review only. I did not build or run anything; this PR changes documentation only.)

What Problem Does This PR Solve?

  • Pain point: connector pages had drifted from the code (partition_num default, Datahub placeholders, DB2/OceanBase/Vertica type tables, the Vertica XA claim, missing Airtable/GraphQL/Elasticsearch options), and several zh pages lagged behind en.
  • Fix approach: correct each claim from the Java sources (JdbcSourceOptions, JdbcSourceTableConfig, PostgresTypeConverter, TablePlaceholder, the factory option rules) and port the missing zh sections.
  • One sentence: make the connector docs say what the code does, in both languages.
  • Example: a user reading the Mysql source page used to believe partition_num follows job parallelism; the code applies DEFAULT_PARTITION_NUMBER = 10, and the page now says so.

1. Code Change Review

1.1 Core Logic Analysis

No production code is touched. The delta since my last review contains no content change in this PR's files (git diff 6e1ed62 511d809 restricted to the PR's file list is empty). Spot checks I re-did on the current head:

  • partition_num default 10 and String bounds still match JdbcSourceTableConfig / JdbcSourceOptions on the edited pages.
  • The Greenplum sink table still follows PostgresTypeConverter.reconvert (TIMESTAMP_TZ maps to TIMESTAMPTZ(p)), and the earlier stray zh row stays removed.
  • The DuckDB rows that I flagged as gaps last round are now correct on dev (TIMESTAMP WITH TIME ZONE maps to TIMESTAMP_TZ, HUGEINT/UHUGEINT/BIGNUM to DECIMAL(38,0)), so that carryover is closed.

Runtime path: not applicable (docs only, nothing is loaded by any job).

1.2 Compatibility Impact

Fully compatible. Documentation only; no option, default, or runtime behavior change. The two dev commits this branch is behind (#12318 SQL numeric comparisons, #11486 Kafka batch splits) touch different files and do not overlap with this PR.

1.3 Performance / Side-Effect Analysis

None.

1.4 Error Handling and Logging

Not applicable to code. The remaining items are documentation accuracy only. All are carryovers from my earlier rounds (I should have grouped them more clearly in the first round, sorry for spreading them out), and all are non-blocking.

Issue 1: InfluxDB where caution wording (carryover)

  • Location: docs/en/connectors/source/InfluxDB.md:177-184, docs/zh/connectors/source/InfluxDB.md
  • Problem description: the text says where "in a table entry" fails in tables_configs mode. The factory check in InfluxDBSourceFactory.buildTables() rejects a root-level where combined with tables_configs.
  • Potential risk: a user may move a predicate between places expecting a different outcome.
  • Best improvement: say that a root-level where together with tables_configs is rejected, and the predicate belongs inside each entry's sql.
  • Severity: Low
  • Raised by another reviewer: No (my earlier round)

Issue 2: Partition bound type still BigDecimal on sibling pages (carryover)

  • Location: docs/en/connectors/source/Oracle.md:75-76,161,165, docs/en/connectors/source/HiveJdbc.md:82-83 (and zh counterparts)
  • Problem description: JdbcSourceOptions declares both bounds as strings, the same drift this PR fixed on six other pages.
  • Potential risk: inconsistent docs across JDBC pages.
  • Best improvement: change them here or in a short follow-up.
  • Severity: Low
  • Raised by another reviewer: No

Issue 3: DB2 source uses non-SeaTunnel type names (carryover)

  • Location: docs/en/connectors/source/DB2.md:54-55
  • Problem description: the right-hand column lists SHORT and INTEGER; the SeaTunnel names are SMALLINT and INT. This PR already fixed LONG to BIGINT two rows below.
  • Potential risk: cosmetic inconsistency inside one table.
  • Best improvement: rename the two cells.
  • Severity: Low
  • Raised by another reviewer: No

Issue 4: Stale "job parallelism" wording for partition_num (carryover)

  • Location: docs/en/connectors/source/Greenplum.md:73, docs/en/connectors/source/HiveJdbc.md:95
  • Problem description: the prose still ties the split count to job parallelism, while the effective default is 10.
  • Potential risk: users may misjudge parallelism.
  • Best improvement: align the sentence with the new default.
  • Severity: Low
  • Raised by another reviewer: No

2. Code Quality Assessment

2.1 Coding Standards

Tables are readable; changes are real content fixes with little formatting churn.

2.2 Test Coverage and Test Stability

No tests apply. CI on this head: Build pass, Signal pull request update pass. Rating: Stable. I did not run anything locally.

2.3 Documentation (en/zh parity)

The 34 files are 17 en and 17 zh. Content fixes are mirrored where both languages have the page. Intentional asymmetries are Elasticsearch and the en-only items noted in earlier rounds, plus the zh InfluxDB source/sink pages gaining sections that en already had. The InfluxDB wording (Issue 1) is shared by both languages and should be fixed in both.

3. Architectural Soundness

  • 3.1 Precise fix / Temporary workaround / Long-term solution: precise, source-backed corrections. Not a workaround.
  • 3.2 Maintainability: improves maintainability; the Greenplum sink table follows reconvert(), the right direction for a sink page.
  • 3.3 Extensibility: not applicable. A follow-up sweep over the remaining JDBC pages (Issues 2 and 4) would finish the cleanup.
  • 3.4 Historical-version compatibility: no behavior change; no upgrade impact.

4. Issue Summary

Number Issue Location Severity
1 InfluxDB where caution wording InfluxDB.md (en 177-184, zh) Low
2 Partition bounds still BigDecimal Oracle.md, HiveJdbc.md Low
3 DB2 SHORT / INTEGER names DB2.md:54-55 Low
4 Stale "job parallelism" wording Greenplum.md:73, HiveJdbc.md:95 Low

5. Merge Recommendation

Conclusion: Ready to merge

No blocking issues found. The claims I re-verified against source are accurate, the earlier blockers stay fixed, Build is green on this head, and the PR is mergeable (the blocked state reflects the branch-protection approval requirement, not a conflict). The branch is 2 commits behind dev, but those commits touch unrelated files, so no sync is required.

Blockers: none.

Non-blocking recommendations: Issues 1-4 above, either in this PR or a short follow-up. The PR description still lists some items that now live on dev (for example the DuckDB tables), so a quick refresh would help reviewers.

My earlier approval remains valid for this head; the delta is a pure dev merge.

# Conflicts:
#	docs/en/connectors/sink/Elasticsearch.md
# Conflicts:
#	docs/zh/connectors/source/InfluxDB.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 maintaining this source-backed documentation audit. I re-read the complete current 33-file diff and the affected option/converter/parser paths. The prior blockers remain resolved; the remaining carryovers are small wording improvements.

What Problem Does This PR Solve?

User pain point: Connector guides advertise incorrect split defaults, nonfunctional table placeholders and read-direction type mappings on sink pages.

Fix approach: Align shared JDBC option descriptions, DataHub placeholders and converter tables with the actual code, and mirror missing sections in Chinese.

One-sentence summary: The DataHub topic ${table} does not match TablePlaceholder; ${table_name} does. JDBC query-mode partition_num defaults to 10 when unset, rather than to job parallelism.

Review report time: 2026-10-29T11:48:03.596016-04:00. Current head 94d59298048a40daf8cad07cf7caa5eeafbc4950; base dev at 5598ed7f3a88602032a18b617cb21c688aacf965. Checks: Signal pull request update=SUCCESS; Build=SUCCESS. Check references: Signal pull request update Build. Compare: ahead, ahead 8, behind 0; merge state blocked / BLOCKED.

1. Code Change Review

1.1 Core Logic Analysis

All 33 changed Markdown files were read. JdbcSourceOptions.java:141-151 declares String bounds; JdbcSourceTableConfig.java:42,98 sets an absent query partition number to 10. TablePlaceholder.java:27-46 defines table_name/table_full_name/database_name, not table. GreenplumDialectFactory reuses PostgresDialect, whose PostgresTypeConverter.reconvert (:338-500) emits NUMERIC, TEXT/VARCHAR and TIMESTAMP/TIMESTAMPTZ in the sink direction. DB2TypeConverter.java:140-148 preserves DECIMAL precision/scale. OracleTypeConverter.java:142-174 explains the OceanBase Oracle integer-number correction. HttpSourceReader.java:433-443 increments page indices by one; removing the OneSignal stride example is correct. RocketMQSourceOptions.java:50-64 confirms group-offset default plus explicit timestamp/specific-offset modes. SinkConnectorCommonOptions.java:29-36 confirms replica default 1.

Before:

topic = "${table}"
// partition_num default documented as job parallelism
// Greenplum sink table used the source direction

After:

topic = "${table_name}"
// partition_num default documented as 10
// Greenplum table follows PostgresTypeConverter.reconvert

Key Findings

  • Ordinary factory/config construction reaches the documented options; no Java behavior is modified.
  • DataHub placeholders are corrected at the actual shared substitution boundary.
  • Greenplum now separates TIMESTAMP and TIMESTAMP_TZ and documents target creation direction.
  • OneSignal no longer claims unsupported offset strides.
  • The remaining wording carryovers do not invalidate the corrected examples or introduce a runtime regression.

Complete runtime path

ConfigBuilder -> FactoryUtil.createAndPrepareSource/Sink
 -> JdbcSourceFactory / JdbcSourceTableConfig -> query-mode default partition count 10
 -> JDBC split enumerator -> dialect converter on read
 -> multi-table placeholder substitution -> DataHub topic
 -> Greenplum/Postgres save-mode table creation -> PostgresTypeConverter.reconvert
HTTP OneSignal -> HttpSourceReader numbered pagination -> pageIndex += 1
RocketMQ source -> StartMode option -> corresponding enumerator offset selection
Only the guides for these paths change.

The effects depend on the entry and preconditions above. Recovery, batching and connector lifecycle retain their existing contracts unless explicitly described here; source inspection is not runtime proof.

1.2 Compatibility Impact

Fully compatible. Documentation only. No Java, public API/SPI, option/default, protocol, state or serialization changes; no data/checkpoint migration is required.

1.3 Performance / Side-Effect Analysis

No production CPU, memory, GC, network, lock, concurrency, retry, idempotency or resource-release behavior changes. Existing connector costs and delivery guarantees remain unchanged.

1.4 Error Handling and Logging

No error handler or logging code is modified. Correcting the unsupported Vertica XA claim and the OneSignal pagination example avoids promising guarantees that the corresponding path cannot supply.

Issue 1: Clarify the root-level InfluxDB where rejection

  • Location: docs/en/connectors/source/InfluxDB.md:181
  • Problem description: The mode-specific caution describes where inside an entry. InfluxDBSourceFactory.java:125-127 separately rejects root-level where combined with tables_configs; the unsupported-key check at :155-159 rejects an entry-local where too.
  • Potential risk: A reader may move the filter to root level expecting it to work.
  • Best improvement / root-cause and location assessment: State both rejected placements and direct users to include predicates in each entry's sql, in en and zh. This carries forward the existing wording observation and is non-blocking.
  • Severity: Low; non-blocking.
  • Raised by another reviewer: No.

Issue 2: Use schema type names in the DB2 source table

  • Location: docs/en/connectors/source/DB2.md:54-55
  • Problem description: The adjacent unchanged rows still call SeaTunnel types SHORT and INTEGER while the corrected row uses BIGINT. BasicType.SHORT_TYPE and INT_TYPE are rendered as SMALLINT and INT in configuration.
  • Potential risk: Minor type-name inconsistency in a table a user may copy.
  • Best improvement / root-cause and location assessment: Use SMALLINT and INT in both language tables. This is a previously raised carryover, not a new blocker.
  • Severity: Low; non-blocking.
  • Raised by another reviewer: No.

2. Code Quality Assessment

2.1 Coding Standards

The complete changed-file set, imports and removed lines were inspected. Only Markdown is changed. New changelog files follow the surrounding Markdown conventions; no new core Java method or state field requires documentation.

2.2 Test Coverage and Test Stability

No UT/E2E code changes; a test-stability rating is not applicable. Source-backed documentation checks were performed; no documentation build, configuration execution or connector job was run.

Local verification results: exact-head git fetch and isolated review branch seatunnel-review-12679-20261029 created; full git diff 5598ed7f3a88602032a18b617cb21c688aacf965...94d59298048a40daf8cad07cf7caa5eeafbc4950 read (33 files); git diff --check passed; git show, rg and line-numbered source/caller/config/test reads used for the trace above. GitHub changed filenames are reconciled with this local diff before publication. No local compile, Maven verify, unit/IT/E2E, Docker, service or UI execution occurred, as required for this review task. No build/deployment artifact was reused; engine-ui was not built.

2.3 Documentation Updates

Both language changes were read and agree on the corrected runtime contracts. The en-only Elasticsearch heading change removes a duplicate heading; the zh InfluxDB example fills an existing translation gap. Previous DuckDB findings have dropped out because those pages are now in the base, so they are not renewed here. Remaining Oracle/HiveJdbc bound-type and partition prose drift can be a focused follow-up outside this diff.

3. Architectural Soundness

3.1 Elegance of the Solution

Precise fix.

3.2 Maintainability

Best change-location assessment: Correct the connector guides against the existing options, factories, converters and parser. Changing production code to fit inaccurate documentation would expand scope unnecessarily.

3.3 Extensibility

Keep existing connector identities and contracts. Reuse the current boundary and regression fixtures; no shared-framework redesign or unrelated dependency is needed for the behavior reviewed here.

3.4 Historical-Version Compatibility

Documentation only. No Java, public API/SPI, option/default, protocol, state or serialization changes; no data/checkpoint migration is required. This review does not claim an executed upgrade/recovery validation.

4. Issue Summary

Number Issue Location Severity
1 Clarify the root-level InfluxDB where rejection docs/en/connectors/source/InfluxDB.md:181 Low, non-blocking
2 Use schema type names in the DB2 source table docs/en/connectors/source/DB2.md:54-55 Low, non-blocking

Completeness check: full diff and affected entry/call chain, failure/resource paths, compatibility, tests and stability, bilingual docs, configuration/registration and current CI/merge gates were inspected before enumerating these findings. No additional finding is reserved for a later round on this version.

Community review reconciliation: +1 to @SEZ9's earlier Greenplum sink-direction and JDBC bound consistency points: the current tables now follow reconvert and the shared String options. His original blockers are resolved; the remaining InfluxDB/DB2 notes are carryovers already discussed by Daniel. No maintainer change-request intent is silently overridden.

5. Merge Recommendation

Conclusion: Ready to merge

  1. Blockers — must be fixed: No code-side blocker found. Required current-head CI and effective maintainer review/merge gates must be satisfied.
  2. Recommended fixes — non-blocking: Issue 1: Clarify the root-level InfluxDB where rejection; Issue 2: Use schema type names in the DB2 source table

Overall assessment: Correct the connector guides against the existing options, factories, converters and parser. Changing production code to fit inaccurate documentation would expand scope unnecessarily. Current head 94d59298048a40daf8cad07cf7caa5eeafbc4950; base dev at 5598ed7f3a88602032a18b617cb21c688aacf965. Checks: Signal pull request update=SUCCESS; Build=SUCCESS. Check references: Signal pull request update Build. Compare: ahead, ahead 8, behind 0; merge state blocked / BLOCKED. Behind/diverged status alone is synchronization metadata and does not justify a sync-and-rerun instruction. Daniel has READ permission: this COMMENT is a technical conclusion, not an effective APPROVED event or dismissal of historical requested changes. A write-capable maintainer owns final approval/dismissal where required. No blocking source issue found. Any currently required check/maintainer approval remains a separate gate; a branch behind dev by itself does not require another sync comment. Thanks again; happy to help with the focused next revision.

Resolve OneSignal.md (en/zh) conflicts: keep the dev-side example that
omits offset and the pageing/offset clarification note.

@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 documentation audit aligned with the source, @zhangshenghang. I re-read the full 33-file diff at a1fbf097de and the affected configuration, conversion, placeholder and pagination paths. The earlier blocking requests remain resolved, and this head's docs-only Build is green. I am recording technical approval; the remaining notes are the small, previously discussed wording follow-ups. Daniel's READ-level review does not replace the repository's write-capable maintainer approval gate.

What Problem Does This PR Solve?

  • User pain: Connector guides advertised incorrect JDBC split defaults/bound types, a nonfunctional DataHub placeholder, sink tables in the source direction, and pagination/transaction guarantees the corresponding paths do not supply.
  • Fix approach: Correct the guides against shared options and actual converters, distinguish InfluxDB configuration modes, and fill the missing Chinese examples.
  • One-sentence summary and example: A DataHub multi-table job uses ${table_name}, and an unset JDBC query partition count is documented as 10 rather than job parallelism.

1. Code Change Review

1.1 Core Logic Analysis

All changed Markdown hunks were inspected in both languages. No Java implementation changes.

Before/after examples:

# before
 topic = "${table}"
# after
 topic = "${table_name}"
Before: partition bounds = BigDecimal/Long; partition_num default = job parallelism
After:  partition bounds = String; partition_num default = 10
Before: Greenplum source-direction table combined timestamp/timestamptz
After:  sink-direction TIMESTAMP -> TIMESTAMP(p), TIMESTAMP_TZ -> TIMESTAMPTZ(p)

Affected runtime chain checked:

Job parser -> source/sink FactoryUtil -> dialect-specific factory
 -> JDBC JdbcSourceOptions String lower/upper bounds [141-151]
 -> JdbcSourceTableConfig [83-98]: configured bounds; missing partition count -> 10
 -> source enumerator/split planner -> JDBC reader
 -> DB2TypeConverter [115-147] / OracleTypeConverter [142-175]
 -> declared SeaTunnel types and actual database precision/scale

Greenplum sink factory -> GreenplumDialectFactory.create -> PostgresDialect
 -> save-mode/catalog column generation -> PostgresTypeConverter.reconvert
 -> DECIMAL -> numeric(p,s), except preserved sourceType=money [359-364]
 -> STRING -> text/varchar; TIME/TIMESTAMP/TIMESTAMP_TZ [443-500]
 -> existing JDBC writer/commit lifecycle (unchanged)

Multi-table sink configuration
 -> TableSinkFactoryContext.replacePlaceholderAndCreate [45-55]
 -> TablePlaceholderProcessor -> table_name/table_full_name/database_name keys
 -> DataHub topic configuration -> existing sink writer
 -> Airtable/GraphQL/InfluxDB sink capability + writer capability + factory replica option
 -> common multi_table_sink_replica default 1 -> per-table writers

Airtable source -> shared HTTP config retry/backoff/poll options -> HttpSourceReader
OneSignal request -> numbered pageing branch [433-441] -> pageIndex += 1
 -> repeated offset windows cannot express a stride; documented example stays single-request
InfluxDB factory -> single-table or tables_configs mode
 -> root where + tables_configs rejected [125-127]
 -> entry supported-key validation [155-160] also rejects entry where
 -> split enumerator: single-table case-sensitive split / table-specific case-insensitive split
RocketMQ options -> group-offset default or timestamp/specific offsets
 -> RocketMqSourceSplitEnumerator start-mode switch -> broker offset discovery

Key findings:

  1. Normal connector construction reaches the options described here. The PR changes documentation, not defaults or delivery behavior.
  2. The shared JDBC bound types and absent-query partition count match source across the changed dialect pages, including the previously missed English SqlServer cells/headings.
  3. Greenplum's table now follows sink conversion, distinguishes local/zoned timestamps, and explains the source-type-dependent MONEY exception. The stray old Chinese BYTEA row is gone.
  4. DB2 preserves actual decimal precision/scale. OceanBase Oracle NUMBER(p) with p>18 follows the bounded zero-scale decimal branch; the unsigned MySQL TINYINT row no longer includes signed TINYINT incorrectly.
  5. The unsupported OneSignal stride and blanket Vertica XA claim are no longer advertised. This review checks the project's documented JDBC XA support boundary; it does not certify every vendor-driver release or execute a database transaction.

The DataHub substitution claim is verified at the shared factory context, not inferred from the connector's topic string alone. Airtable and InfluxDB sinks declare SupportMultiTableSink, return their capable writer types, and register the replica option; GraphQL does the same, with writer capability inherited through HttpSinkWriter. The new rows therefore describe an implemented contract rather than only a config constant.

1.2 Compatibility Impact

Fully compatible at runtime. No API/SPI, configuration name/default, protocol, state or serialization changes. Existing jobs need no migration. Corrected examples describe existing behavior; they do not add exactly-once guarantees to DataHub/Vertica or add a new HTTP pagination mode.

1.3 Performance and Side Effects

No new CPU, memory, GC, network, locks, concurrency, retry, idempotency or cleanup behavior is introduced. Existing multi-table replication and HTTP backoff retain their costs. Documenting a default of 10 does not change the code's existing partition planning.

1.4 Error Handling, Logging and Formal Findings

No implementation logging or exception policy changes. The InfluxDB caution now distinguishes a no-op option from build-time rejection. No blocking issue was found.

Issue 1: Clarify both rejected placements of InfluxDB where (existing optional note)

  • Location: docs/en/connectors/source/InfluxDB.md:181, corresponding Chinese source guidance.
  • Description: The updated tables_configs caution explicitly names entry-local where, while InfluxDBSourceFactory.buildTables also rejects root-level where combined with tables_configs. This is related to @SEZ9's earlier Issue 1, but the remaining detail is the separate root-level rejection, not the already-fixed mode/case-sensitivity distinction.
  • Potential risk: A reader might move the filter from an entry to root level and encounter another validation error.
  • Best improvement: State that neither root nor entry where is supported in tables_configs mode; put each predicate inside that entry's SQL. Mirror the sentence in both languages.
  • Severity: Low; non-blocking, as previously agreed.
  • Already raised by another reviewer: Partially related to @SEZ9 review 5451587358; this is Daniel's retained clarification of the other placement.

Shared optional note: @SEZ9's Issue 8 (Daniel's previous Issue 2), DB2 canonical names

  • Location: docs/en/connectors/source/DB2.md:54-55 and zh counterpart.
  • Description and risk: +1 to the existing request to use SMALLINT/INT consistently in the SeaTunnel-type column rather than adjacent SHORT/INTEGER labels. This is naming consistency, not a decimal-conversion defect. In particular, I would not repeat the broader claim that SHORT is universally rejected: SeaTunnelDataTypeConvertorUtil.compatibleTypeDeclare:118-119 explicitly accepts that compatibility alias.
  • Best improvement: Use canonical SMALLINT and INT in both tables in the agreed follow-up.
  • Severity: Low; non-blocking.
  • Already raised by another reviewer: Yes, @SEZ9 review 5451587358; attributed once rather than assigned another Daniel number.

2. Code Quality Assessment

2.1 Coding Standards

The changed files are Markdown only, with consistent option tables and code fences. No new production method/field needs a code contract. The en-only Elasticsearch edit removes a duplicate heading; the zh InfluxDB sink addition fills a pre-existing translation gap rather than changing its runtime API.

2.2 Test Coverage and Stability

No UT/E2E code changes, so a test-stability rating is not applicable. I inspected shared option declarations, converter branches, factory capability registration and the actual HTTP/RocketMQ selection paths. I did not run a docs build, handler compilation, API request, connector job or database test locally.

Exact-head fork Build 41286993293 succeeded: seven jobs succeeded and 50 were skipped under the docs-only matrix. Apache Build and PR signal are SUCCESS. This is not a claim that all connector ITs ran.

2.3 Documentation

All 33 changed pages were read. Both languages agree on shared JDBC defaults/bounds, DataHub names, Greenplum mapping, RocketMQ modes and HTTP settings. The earlier DuckDB pages no longer belong to this PR's diff; findings on their historical changes are not reopened here. Existing surrounding Oracle/Hive or other dialect prose can be handled separately rather than expanding this audit indefinitely.

3. Architectural Assessment

3.1 Solution Quality

Focused documentation repair. It corrects user guidance against actual shared boundaries instead of changing working production behavior to match inaccurate examples.

3.2 Maintainability

A source-backed shared option/type audit is easier to maintain than independent assumptions in each connector page. The Greenplum sink-direction note makes the conversion distinction explicit.

3.3 Extensibility

No framework changes are introduced. Future documentation can reuse the same config/converter/capability checks, keeping runtime support distinct from a bare option declaration.

3.4 Historical Compatibility

No execution/state migration is introduced. Existing alias acceptance and connector behavior are unchanged; source inspection is not executed upgrade or exactly-once proof.

4. Issue Summary

Number/reference Issue Location Severity
1 Clarify root and entry where rejection source/InfluxDB.md:181 and zh guidance Low
SEZ9-8 (previous Daniel 2) DB2 canonical type-name consistency source/DB2.md:54-55 in both languages Low

No blocking issue remains. Shared findings are not duplicated under fresh Daniel numbering.

5. Merge Conclusion

Conclusion: Can merge

  1. Blockers (must fix): None from Daniel's technical review. Effective write-capable maintainer approval and normal repository merge gates remain separate.
  2. Recommended improvements (non-blocking): Issue 1 and the shared DB2 canonical-name note can be completed in the already discussed focused follow-up.

Community reconciliation: +1 to @SEZ9's Greenplum direction, bound-type and InfluxDB mode findings: the current diff addresses those requests. The shared-default observation is confirmed at 10, while historical DuckDB-specific items have left the diff. The remaining DB2 naming note is attributed above. @SEZ9's review is COMMENTED; I do not represent it as an independent maintainer APPROVED event.

Overall assessment and alternatives: This is ready technically, with current-head docs CI green. Keeping the small wording notes in a follow-up is reasonable. An unrelated runtime/API change or dependency update would not be a better implementation of this documentation correction.

Upstream facts: Compare is diverged, ahead nine / behind one, with no conflict. Green current-head CI supplies direct evidence; no contributor sync request is justified solely by that drift.

Review controls: This approval records Daniel's technical review. READ permission does not satisfy a write-reviewer rule or dismiss historical requests in GitHub's effective summary. A write-capable maintainer must perform any required final approval/dismissal.

Verification scope: Local fetch/isolated branch, complete 33-file diff (+191/-102), actual config/converter/caller reads with Git, and current-head CI metadata. git diff --check returned 0. No local build, UT/IT/E2E, service, container or database execution was performed.

Snapshot 2026-11-01T12:48:19.088267+00:00: head a1fbf097dee3c981ce6772506b8001ff867c6153, base dev; compare diverged, ahead 9 / behind 1; merge blocked / BLOCKED, review decision REVIEW_REQUIRED. Drift is recorded separately; it does not itself request synchronization.

Resolve Datahub.md (EN/ZH) conflicts: keep the dev-side topic placeholder
description aligned with the TablePlaceholder definitions and the
invalid-${table} warning.

@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 again for the careful documentation audit, @zhangshenghang. This is a re-review of head ecb0d352cd (previous review was at a1fbf097de).

What Problem Does This PR Solve?

  • User pain: Connector guides had drifted from the code: JDBC source pages claimed partition_num defaults to job parallelism and typed the partition bounds as BigDecimal/Long, the Greenplum sink lacked a sink-direction type table, and several zh pages lacked sections present in en.
  • Fix approach: Docs-only corrections against shared options and converters, plus en/zh parity ports (InfluxDB sink, Airtable, GraphQL, Vertica, OneSignal).
  • Summary: An unset JDBC partition_num is documented as 10, and the bounds as String.

1. Code Change Review

1.1 Core Logic

No Java or runtime change. I re-checked the key claims against the source at this head:

  • JdbcSourceTableConfig.java:42,98: DEFAULT_PARTITION_NUMBER = 10, applied when unset. This matches the Int / 10 rows on the Mysql, PostgreSQL, SqlServer, OceanBase, Redshift and Vertica pages.
  • JdbcSourceOptions.java:141-151: partition_upper_bound and partition_lower_bound are String options. All six en pages now say String, including the #### partition_lower_bound [String] headings.
  • docs/en/connectors/sink/Greenplum.md:55-70: the table is in the sink direction (PostgresTypeConverter.reconvert), with TIMESTAMP and TIMESTAMP_TZ as separate rows and the MONEY caveat stated.
  • InfluxDBSourceFactory.java:125-127: root where is rejected under tables_configs, which matches the two-mode InfluxDB wording.

1.2 Compatibility

Documentation only. No option, default, API or serialization change.

1.3 Side Effects

None.

1.4 Error Handling and Logging

Not applicable.

2. Quality

2.1 Standards

Wording matches the surrounding pages. The en and zh changes are paired file by file. Datahub.md is no longer in the PR because the dev side already carries that fix, which is correct.

2.2 Tests and Stability

Docs only, so no tests are needed. Stability: Stable.

Since my last approval, the head moved only by a merge of dev. The delta between a1fbf097 and ecb0d352 touches none of the 31 PR files, and the only conflict resolution (Datahub) took the dev side. The Kafka E2E and other doc files in that delta come from dev, not from this PR.

2.3 Docs

En/zh parity looks good. All previous blockers (OneSignal paging example, InfluxDB where modes, Greenplum timestamptz and direction, partition bound types, stray zh table row) remain fixed.

3. Architecture

No impact.

4. Issues

# Severity Location Status
- - - No new issues found at this head

5. Merge Recommendation

Ready to merge. There are no non-CI blockers. The Build job is green on this head, and the branch is 0 commits behind dev. The merge state shows BLOCKED only because the repository requires a write-capable maintainer approval. My READ-level approval does not satisfy that gate.

Resolve JDBC-family source table and RocketMQ FAQ conflicts (EN/ZH):
keep the dev-side wording verified in apache#12447/apache#12865/apache#13089 (DB2 BIGINT
to LONG, DECIMAL(precision, scale), OceanBase merged unsigned rows and
Number(p,s) qualification, partition-row formatting).

@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 @zhangshenghang for keeping this branch in sync. This is a short re-review of head e16650bb994fc9fd9d0138c52b54d718b325b0f2. My previous review was at ecb0d352cd. The only change since then is the merge of dev at 26ad719a48b (#12865). Nothing else changed, so I re-checked the merge result and CI rather than repeating the full report.

What Problem Does This PR Solve?

The problem is the same as before. Several connector pages had drifted from the code: JDBC partition_num default and bound types, DuckDB/Vertica/DB2/OceanBase type tables, OneSignal paging, the InfluxDB and Airtable zh gaps, and the Greenplum sink mapping. This PR is a docs-only correction pass in both en and zh.

1. Code Change Review

1.1 What the dev merge did to this PR

  • Files that are still in the PR (15): I compared their diff against dev before and after the merge, and the added and removed lines are identical. The merge did not touch any content of these files.
  • Files that left the PR (16): these are the Mysql, PostgreSQL, SqlServer, Redshift, OceanBase, DB2 and RocketMQ source pages and the GraphQL sink page, in both en and zh. They left the diff because #12865 now carries equivalent fixes on dev. I checked the head content and found the following:
    • partition_lower_bound / partition_upper_bound are String and partition_num defaults to 10 on all six JDBC pages, in en and zh.
    • The PostgreSQL driver row names org.postgresql.Driver.
    • GraphQL multi_table_sink_replica defaults to 1.
    • RocketMQ lists all five start.mode values, with CONSUME_FROM_GROUP_OFFSETS as the default.
    • The OceanBase Oracle-mode Number(p) rows are split into 18 < p < 38 -> DECIMAL(p,0) and p >= 38 -> DECIMAL(38,0). That is equivalent to this PR's earlier DECIMAL(min(p,38), 0), and the duplicate TINYINT row is gone.
    • No fix was lost in the conflict resolution.
  • One wording difference, informational only: on dev, the DB2 source table (docs/en/connectors/source/DB2.md:56, same in zh) labels BIGINT as LONG (next to SHORT / INTEGER). This PR had used BIGINT. Both describe BasicType.LONG_TYPE, and that page now uses Java-style names consistently, so this is not a blocker for this PR. If you want the type label unified with the other JDBC pages, a follow-up would be the place for it.

1.2 Compatibility, 1.3 Side effects, 1.4 Error handling

Documentation only. There is no option, default, API or serialization change, and no side effects.

2. Quality

2.1 Standards

The en and zh pages are still paired file by file in the 15 remaining files.

2.2 Tests

Docs only. Stability: Stable.

2.3 Docs

Parity holds. A small optional item: the PR description still lists the JDBC-family, DB2, OceanBase, PostgreSQL, RocketMQ and GraphQL fixes and says "42 documentation files". Those pages are now fixed on dev and are no longer in this diff, which is 15 files. Trimming the description would help whoever merges this. This is non-blocking.

3. Architecture

No impact.

4. Issue table

# Issue Location Severity
1 PR description lists pages that left the diff after the dev merge PR body Low (optional)

5. Merge recommendation

Conclusion: Ready to merge

There are no non-CI blockers. CI is green on this head: the fork Build run succeeded and the Apache-side Build and Signal pull request update checks pass. GitHub reports no conflicts; the branch is 2 commits behind dev, which needs no action for a docs PR. The merge state shows BLOCKED only because a write-capable maintainer approval is still required, and my approval does not satisfy that gate.

@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.

+1
LGTM

Thanks for your contribution!

Please ignore the following message if you have joined in the Slack~

To facilitate focused communication among contributors, we’ve created a brand-new dedicated #contributors channel in official Slack workspace. Slack workspace link: https://s.apache.org/seatunnel-slack

@davidzollo
davidzollo added this pull request to the merge queue Nov 7, 2026
Merged via the queue into apache:dev with commit a7955d6 Nov 7, 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