Repository navigation
[Docs] Fix connector doc inaccuracies and en/zh parity verified against source code - #12679
Conversation
SEZ9
left a comment
There was a problem hiding this comment.
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_numdefaults to job parallelism whenJdbcSourceTableConfig.DEFAULT_PARTITION_NUMBERis 10, DuckDB type tables contradictedDuckDBTypeConverter(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 againstTablePlaceholder(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-286mapstimestamptz→OFFSET_DATE_TIME_TYPE, i.e. TIMESTAMP_TZ) and is written in the read direction on a sink page; the sharedpartition_lower_bound/partition_upper_boundtype is fixed to String only on Vertica while the sibling pages touched here still say BigDecimal/Long; the ported InfluxDBwherecaution overstates "no effect" and case-sensitivity versus the factory's outright rejection withtables_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 settingwherehas no effect on the generated split queries, that the split parser is case-sensitive on thewherekeyword, and that onlyInfluxDBSourceFactory.optionRule()still references the option. - That is only true for the single-table path.
InfluxDBSourceFactory.buildTables()doesif (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 withtables_configs, settingwherefails job creation rather than being ignored, andoptionRule()is not the only place the option is read. - Case sensitivity also differs by mode:
InfluxDBSourceSplitEnumeratorusessql.split(InfluxDBSourceOptions.SQL_WHERE.key())only whentableId == null; thetables_configspath usessql.split("(?i)\\s+where\\s+", 2)(InfluxDBSourceSplitEnumerator.java:175-178), which is case-insensitive. - Impact: users of
tables_configswho follow this caution will be surprised by a validation error, and users who read "case-sensitive" may needlessly rewrite uppercaseWHEREin 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()throwsOptionValidationException("With tables_configs, put each WHERE predicate inside that entry's sql, not in a separate where option")whenwhereis set (InfluxDBSourceFactory.java:125-127), so it is a hard rejection there, not a no-op — andoptionRule()is not the only place that reads the option. Likewise the case-sensitive split (sql.split(SQL_WHERE.key())) is only used whentableId == null; thetables_configspath usessql.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.mdsaysTIMESTAMP / TIMESTAMPTZ | TIMESTAMP. Greenplum uses the PostgreSQL dialect (GreenplumDialectFactory.create()returnsnew PostgresDialect()), and inPostgresTypeConverter.convert()(psql/PostgresTypeConverter.java:284-286)PG_TIMESTAMP_TZis mapped toLocalTimeType.OFFSET_DATE_TIME_TYPE, i.e. SeaTunnelTIMESTAMP_TZ, notTIMESTAMP. 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()mapstimestamptztoLocalTimeType.OFFSET_DATE_TIME_TYPE(SeaTunnelTIMESTAMP_TZ), notTIMESTAMP(PostgresTypeConverter.java:284-286), and Greenplum reuses that converter viaGreenplumDialectFactory->new PostgresDialect(). Please split this row intoTIMESTAMP -> TIMESTAMPandTIMESTAMPTZ -> 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.mdis headed| Greenplum Data Type | SeaTunnel Data Type |and lists rows such asMONEY -> DECIMAL(30,2). That is theconvert()(source/read) mapping fromPostgresTypeConverter(case PG_MONEYbuildsnew DecimalType(30, 2), lines 196-200), which Greenplum inherits becauseGreenplumDialectFactory.create()returnsnew PostgresDialect(). - On a sink page the relevant mapping is
reconvert()(SeaTunnel -> Greenplum column type, used for automatic table creation underschema_save_mode). There the direction is not symmetric:case DECIMALonly emitsmoneywhencolumn.getSourceType()is alreadymoney(PostgresTypeConverter.java:359-363); otherwise a DECIMAL becomesnumeric(p,s). A reader of this table would expect a SeaTunnelDECIMAL(30,2)to land asMONEY, 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 fromPostgresTypeConverter.convert()). For a sink what matters isPostgresTypeConverter.reconvert()(SeaTunnel -> Greenplum, used for auto table creation), where a DECIMAL only becomesmoneyif the column's source type was alreadymoney(lines 359-363), otherwisenumeric(p,s). Could we flip the table toSeaTunnel Data Type | Greenplum Data Typeand derive it fromreconvert()(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 singlestringType()option pair shared by every JDBC dialect page. This PR changes the Vertica source table toString(en and zh) but leavesBigDecimalin the Mysql (Mysql.md:81-82), PostgreSQL (PostgreSQL.md:92-93), OceanBase (OceanBase.md:94) and Redshift (Redshift.md:60) tables andLongin the SqlServer table (SqlServer.md:85-86), all of which this PR touches in thepartition_numrows 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_BOUNDarestringType(). However it is the same shared option on every JDBC page: Mysql/PostgreSQL/OceanBase/Redshift still sayBigDecimaland SqlServer saysLongin the rows directly above thepartition_numrows 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)withBIGINT<br/>UBIGINT -> BIGINT, which faithfully reflectscase DUCKDB_BIGINT: case DUCKDB_UBIGINT: builder.dataType(BasicType.LONG_TYPE)(DuckDBTypeConverter.java:123-125). - The mapping itself is lossy: DuckDB
UBIGINTranges to 2^64-1 while SeaTunnelBIGINTis a signed 64-bit long, whereas the siblingHUGEINT/UHUGEINT/BIGNUMcase is mapped toDecimalType(MAX_PRECISION, 0)(DuckDBTypeConverter.java:127-130). Users who previously readDECIMAL(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_VALUEare 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 advertisedDECIMAL(20,0), please add a short caveat (en+zh) that values aboveLong.MAX_VALUEcannot 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()usesDEFAULT_PRECISION = 18andDEFAULT_SCALE = 3whentypeDefine.getPrecision()/getScale()are null (lines 204-206), then caps atMAX_PRECISION = 38/MAX_SCALE = 38. The new rowDECIMAL(x,y)(precision > 38 or scale > 38) -> DECIMAL(min(x,38), min(y,38))is correct, but a bareDECIMALcolumn (no precision) is a common case and is not covered by either DECIMAL row; the two rows also leave precision == 38 unaddressed (<38vs> 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 SeaTunnelTIMESTAMP_TZ. The sink table (docs/en/connectors/sink/DuckDB.md:65) only listsTIMESTAMP -> TIMESTAMPand lacks theTIMESTAMP_TZ -> TIMESTAMP WITH TIME ZONErow thatreconvert()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,DuckDBTypeConverterfalls back toDEFAULT_PRECISION = 18/DEFAULT_SCALE = 3, i.e.DECIMAL(18,3)— worth a row since bareDECIMALis common (and the<38/> 38pair leaves precision == 38 unstated); (2) theTIMESTAMP WITH TIME ZONE -> TIMESTAMProw just below is still off:case DUCKDB_TIMESTAMP_WITH_TZmaps toOFFSET_DATE_TIME_TYPE(TIMESTAMP_TZ), and the sink table lacks the matchingTIMESTAMP_TZ -> TIMESTAMP WITH TIME ZONErow fromreconvert(). 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 = 10is applied wheneverpartition_numis null (JdbcSourceTableConfig.java:42,98), andJdbcSourceOptions.PARTITION_NUMhas 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:67anddocs/en/connectors/source/Snowflake.md:72(and their zh counterparts) — already state10, 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 to10. - 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 updatedocs/en/connectors/source/Greenplum.mdanddocs/en/connectors/source/Snowflake.md(and their zh pages), which still sayjob parallelismforpartition_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 -> BIGINTrow to use the SeaTunnel type name, but the neighbouring rowsSMALLINT -> SHORT(DB2.md:54) andINT/INTEGER -> INTEGER(DB2.md:55) are left as Java-ish names.DB2TypeConverter.convert()maps these toBasicType.SHORT_TYPEandBasicType.INT_TYPE(DB2TypeConverter.java:115-122), whose SeaTunnel type names areSMALLINTandINT. - Impact: the column is titled 'SeaTunnel Data Type' but a user cannot copy
SHORT/INTEGERinto aschema.fieldsblock or a transform; onlySMALLINT/INTare 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:DB2TypeConvertermaps them toBasicType.SHORT_TYPE/INT_TYPE(lines 115-122), i.e. SeaTunnelSMALLINT/INT.SHORTandINTEGERare 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
wheresection (copied from en) says the option has no effect and the parser is case-sensitive, but withtables_configsthe factory rejectswhereoutright 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 -> TIMESTAMProw still contradictsDuckDBTypeConverterwhich maps it toTIMESTAMP_TZ. - Issue 7: partition_num default corrected to 10 on six JDBC source pages; this matches
JdbcSourceTableConfig.DEFAULT_PARTITION_NUMBERand 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
left a comment
There was a problem hiding this comment.
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_numdefault 10:JdbcSourceTableConfig.java:42,98setsDEFAULT_PARTITION_NUMBER = 10when null;JdbcSourceOptionshas no default;FixedChunkSplitter.java:255-294uses 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/BIGNUMtoDECIMAL(38,0)),:179-185(ARRAY/STRUCT/MAP to STRING),:202-228handleDecimalType(cap at 38). Correct, with the gaps noted by @SEZ9. - DuckDB sink mapping:
reconvert()at:238-310keepsTINYINT/SMALLINTand has no ARRAY/ROW/MAP case (the default branch at:305throwsconvertToConnectorTypeError). Correct. - Datahub placeholders:
DataHubSinkpassespluginConfig.get(TOPIC)straight through; substitution happens generically inFactoryUtil.java:251->TableSinkFactoryContext.replacePlaceholderAndCreate->TablePlaceholderProcessor, whose keys aretable_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-50returnsOracleDialect;OracleTypeConverter.java:142-166givesDECIMAL(min(p,38),0)forNUMBER(p)with p > 18. Correct. MySQL-modeTINYINT UNSIGNED -> SMALLINTmatchesOceanBaseMySqlTypeConverter. - DB2:
DB2TypeConvertermapsDECIMALtoDecimalType(precision, scale)andBIGINTto long. Correct. - OneSignal:
HttpSourceOptions.java:108-112defaultTEXT; nopage_stepkey anywhere in connector-http. Correct. - Elasticsearch
auth_type:AuthTypeEnum.API_KEY_ENCODEDexists. Correct. - Pulsar
StartMode(EARLIEST/LATEST/SUBSCRIPTION/TIMESTAMP) andcursor.reset.mode/cursor.startup.timestampkeys; RocketMQSTART_MODEdefaultCONSUME_FROM_GROUP_OFFSETSplus timestamp/specific-offset modes (RocketMqSourceOptions.java:50-56,RocketMqSourceFactory.java). Correct. - Airtable/GraphQL:
SinkConnectorCommonOptions.MULTI_TABLE_SINK_REPLICAdefault 1 (SinkConnectorCommonOptions.java:31-34) and the added Airtable source options exist in the HTTP options. Correct. - Assert
field_typeaccepts a string or a ConfigMap (AssertRuleParser.java:57-90); thecommentcolumn 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
wherecaution indocs/zh/connectors/source/InfluxDB.md(and the en copy) is only true for the single-table path; withtables_configsthe 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
TIMESTAMPTZtoTIMESTAMP(PostgresTypeConverter.java:284-286returnsTIMESTAMP_TZ) and documents the read direction on a sink page. - +1 Issue 4 (Medium):
JdbcSourceOptions.java:141-151declares both bounds asstringType(), but only Vertica was changed; Mysql, PostgreSQL, Oracle, OceanBase, Kingbase, Redshift, HiveJdbc still sayBigDecimaland SqlServer saysLong(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 ZONErow still wrong (DuckDBTypeConverter.java:172-173returnsOFFSET_DATE_TIME_TYPE) and bareDECIMALdefault(18,3); DB2SHORT/INTEGERare not SeaTunnel type names. - A small correction to Issue 7: the
partition_numrows on Greenplum and Snowflake already say 10 (Greenplum.md:67,Snowflake.md:72), so only the prose linedocs/en/connectors/source/Greenplum.md:73("according topartition_numor job parallelism") is stale. That line, andHiveJdbc.md:95, are outside this PR's files but cheap to fix here.
New finding (not in the earlier review)
- 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) usespage_field = "offset"withlimit = "50". The HTTP source increments the page index by exactly 1 per request (HttpSourceReader.java:433-441;HttpSource.java:80-96only readstotal_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. OneSignaloffsetis 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 documentspartition_numdefault 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
left a comment
There was a problem hiding this comment.
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_numdefault 10:JdbcSourceTableConfigappliesDEFAULT_PARTITION_NUMBER = 10when 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/BIGNUMtoDECIMAL(38,0), ARRAY/STRUCT/MAP to STRING, and caps DECIMAL at 38. Correct. - DuckDB sink mapping:
reconvert()keepsTINYINT/SMALLINTand has no ARRAY/ROW/MAP case; the default branch throwsconvertToConnectorTypeError. 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)forNUMBER(p), p > 18), DB2BIGINT/DECIMAL(p,s), Elasticsearchapi_key_encoded, Pulsar/RocketMQ startup modes, Airtable/GraphQLmulti_table_sink_replicadefault 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-117and the same lines indocs/zh/connectors/source/OneSignal.md - Problem description: removing the non-existent
page_stepis right, but the remaining example still usespage_field = "offset"withlimit = "50"andstart_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
offsetis a record offset, not a page number. - Best improvement: drop
pageingfrom this example and show a single request, or pick an API parameter that is a real page number, and add one sentence thatpageingadvances 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 ondevin the en page,docs/en/connectors/source/InfluxDB.md, so it is worth fixing both in this PR) - Problem description: the new block says
wherehas no effect, the split parser is case-sensitive, and onlyoptionRule()references the option. Withtables_configs,InfluxDBSourceFactory.buildTables()throwsOptionValidationExceptionwhenwhereis set (InfluxDBSourceFactory.java:125-127), and thetables_configssplit path usessql.split("(?i)\\s+where\\s+", 2), which is case-insensitive (InfluxDBSourceSplitEnumerator.java:177-178). The case-sensitivesql.split(SQL_WHERE.key())is used only for the single-table path. - Potential risk:
tables_configsusers see a hard validation error instead of a no-op, and may needlessly rewrite uppercaseWHERE. - 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 | TIMESTAMPis incorrect, becausePostgresTypeConvertermapstimestamptztoOFFSET_DATE_TIME_TYPE, i.e.TIMESTAMP_TZ(PostgresTypeConverter.java:284-286), and Greenplum reuses that converter. The header isGreenplum Data Type | SeaTunnel Data Type, which is theconvert()(read) direction, while a sink user needsreconvert(). Inreconvert()a DECIMAL only becomesmoneywhen the source type was alreadymoney(lines 361-363), otherwisenumeric(p,s), soMONEY | DECIMAL(30,2)misleads on a sink page. - Potential risk: sink users expect
DECIMAL(30,2)to land asMONEYandTIMESTAMP_TZto be documented. - Best improvement: split the timestamp row (
TIMESTAMP -> TIMESTAMP,TIMESTAMPTZ -> TIMESTAMP_TZ), and either flip the table toSeaTunnel Data Type | Greenplum Data Typederived fromreconvert()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-82and:167,PostgreSQL.md:92-93and:156,OceanBase.md:94,Redshift.md:60,SqlServer.md:85-86and:152(en and zh) - Problem description:
JdbcSourceOptions.PARTITION_LOWER_BOUND/PARTITION_UPPER_BOUNDarestringType()and shared by every JDBC dialect. This PR changes only Vertica toString; the pages above, edited in this same PR forpartition_num, still sayBigDecimal(SqlServer saysLong). Oracle and HiveJdbc, which are outside this PR's file list, also sayBigDecimal(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 -> BIGINTis lossy aboveLong.MAX_VALUEand the oldDECIMAL(20,0)hint was removed without a caveat; (b)TIMESTAMP WITH TIME ZONE -> TIMESTAMPis still wrong, sinceDuckDBTypeConverter.java:172-173returnsOFFSET_DATE_TIME_TYPE(TIMESTAMP_TZ), and the sink table lacks theTIMESTAMP_TZ -> TIMESTAMP WITH TIME ZONErow thatreconvert()implements; (c) a bareDECIMALfalls back toDECIMAL(18,3)(DEFAULT_PRECISION/DEFAULT_SCALE), and the<38/> 38pair 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-55and the same rows in zh - Problem description:
BIGINTwas fixed, butSMALLINT -> SHORTandINT/INTEGER -> INTEGERremain.DB2TypeConvertermaps them toSHORT_TYPE/INT_TYPE, whose SeaTunnel names areSMALLINTandINT. - Potential risk: the column is titled "SeaTunnel Data Type" but
SHORT/INTEGERare not valid SeaTunnel type names, so users cannot copy them intoschema.fields. - Best improvement: use
SMALLINTandINT. - 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 topartition_numor job parallelism") anddocs/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
- Blockers - must be fixed
- Issues 1 to 4 (all Medium, all small doc-only edits).
- Recommended fixes - non-blocking
- Issues 5 to 7 (Low).
- Refresh the PR description, since the Assert and OneSignal
formatfixes are now ondev.
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.
|
The four blocking issues are addressed in 27297d2:
The Low items (5-7) and the description refresh are still open, left for a follow-up round. |
DanielLeens
left a comment
There was a problem hiding this comment.
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 isBYTES -> 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 atdocs/zh/connectors/source/SqlServer.md:82-83) - Problem: the en option table still lists
partition_lower_bound/partition_upper_boundasLong, while the prose headings below (:148,:152) now sayStringand the zh table saysString.JdbcSourceOptionsdeclares both asstringType(). - Potential risk: the en page contradicts itself, contradicts zh, and
Longsuggests 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
Longrows)
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-levelwhereoption is set together withtables_configs; its message says to put each WHERE predicate inside that entry'ssql. Awherekey inside a table entry is not what is rejected. - Potential risk: small; a reader could put
wherein 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
whereoption together withtables_configsfails at build time; put the predicate inside each entry'ssql". - Severity: Low
- Raised by another reviewer: No
Issue 4 (carryover, Low): same bound-type mismatch outside the edited files
- Location:
Oracle.mdandHiveJdbc.md(and Kingbase if present) still sayBigDecimalfor the bounds (en and zh where present). - Best improvement: switch them to
Stringin 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:
Buildsuccess,Notify test workflowsuccess,labelersuccess. The PR is 10 commits behinddev; 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
- Blockers (non-CI): Issue 1 and Issue 2. Both are one-line or two-cell edits.
- 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.
|
Both blockers are fixed in 8602201:
|
DanielLeens
left a comment
There was a problem hiding this comment.
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:
BuildSUCCESS,Notify test workflowSUCCESS,labelerSUCCESS. - 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
left a comment
There was a problem hiding this comment.
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_numdefault, 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,TablePlaceholderand 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_numdefault 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_boundasString:JdbcSourceOptionsdeclares both withstringType()(lines 141-151). Matches the edited pages.- DuckDB source table:
UTINYINT/USMALLINT/UINTEGER/UBIGINTmap toBYTE/SHORT/INT/LONG,HUGEINTtoDECIMAL(38,0),ARRAY/STRUCT/MAPtoSTRING, and decimals above 38 are clamped (DuckDBTypeConverter.java,convertandhandleDecimalType). 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.modevalues and theCONSUME_FROM_GROUP_OFFSETSdefault 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 inInfluxDBSourceFactory.buildTables()fires on a root-levelwherecombined withtables_configs. - Potential risk: a user may move a predicate between places expecting a different outcome.
- Best improvement: say that a root-level
wheretogether withtables_configsis rejected, and the predicate belongs inside each entry'ssql. - 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
JdbcSourceOptionsstring 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 ZONEis still listed underTIMESTAMP, butconvertmaps it toOFFSET_DATE_TIME(TIMESTAMP_TZ); (b) the sink table has noTIMESTAMP_TZrow althoughreconverthandles it; (c)HUGEINTomitsUHUGEINT/BIGNUM, which map toDECIMAL(38,0)too; (d) the decimal rows use<38and>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
<=38for 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
SHORTandINTEGER; the SeaTunnel names areSMALLINTandINT. This PR fixedLONGtoBIGINTtwo 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
left a comment
There was a problem hiding this comment.
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_numdefault, 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_numfollows job parallelism; the code appliesDEFAULT_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_numdefault 10 andStringbounds still matchJdbcSourceTableConfig/JdbcSourceOptionson the edited pages.- The Greenplum sink table still follows
PostgresTypeConverter.reconvert(TIMESTAMP_TZ maps toTIMESTAMPTZ(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 ZONEmaps toTIMESTAMP_TZ,HUGEINT/UHUGEINT/BIGNUMtoDECIMAL(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 intables_configsmode. The factory check inInfluxDBSourceFactory.buildTables()rejects a root-levelwherecombined withtables_configs. - Potential risk: a user may move a predicate between places expecting a different outcome.
- Best improvement: say that a root-level
wheretogether withtables_configsis rejected, and the predicate belongs inside each entry'ssql. - 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:
JdbcSourceOptionsdeclares 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
SHORTandINTEGER; the SeaTunnel names areSMALLINTandINT. This PR already fixedLONGtoBIGINTtwo 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
left a comment
There was a problem hiding this comment.
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 directionAfter:
topic = "${table_name}"
// partition_num default documented as 10
// Greenplum table follows PostgresTypeConverter.reconvertKey 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
- Blockers — must be fixed: No code-side blocker found. Required current-head CI and effective maintainer review/merge gates must be satisfied.
- 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
left a comment
There was a problem hiding this comment.
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:
- Normal connector construction reaches the options described here. The PR changes documentation, not defaults or delivery behavior.
- 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.
- 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.
- 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.
- 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, whileInfluxDBSourceFactory.buildTablesalso rejects root-levelwherecombined 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
whereis 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-55and 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-119explicitly 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
- Blockers (must fix): None from Daniel's technical review. Effective write-capable maintainer approval and normal repository merge gates remain separate.
- 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
left a comment
There was a problem hiding this comment.
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_numdefaults 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_numis 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 theInt / 10rows on the Mysql, PostgreSQL, SqlServer, OceanBase, Redshift and Vertica pages.JdbcSourceOptions.java:141-151:partition_upper_boundandpartition_lower_boundareStringoptions. All six en pages now sayString, including the#### partition_lower_bound [String]headings.docs/en/connectors/sink/Greenplum.md:55-70: the table is in the sink direction (PostgresTypeConverter.reconvert), withTIMESTAMPandTIMESTAMP_TZas separate rows and theMONEYcaveat stated.InfluxDBSourceFactory.java:125-127: rootwhereis rejected undertables_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
left a comment
There was a problem hiding this comment.
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
devbefore 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_boundareStringandpartition_numdefaults to10on all six JDBC pages, in en and zh.- The PostgreSQL
driverrow namesorg.postgresql.Driver. - GraphQL
multi_table_sink_replicadefaults to1. - RocketMQ lists all five
start.modevalues, withCONSUME_FROM_GROUP_OFFSETSas the default. - The OceanBase Oracle-mode
Number(p)rows are split into18 < p < 38 -> DECIMAL(p,0)andp >= 38 -> DECIMAL(38,0). That is equivalent to this PR's earlierDECIMAL(min(p,38), 0), and the duplicateTINYINTrow 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) labelsBIGINTasLONG(next toSHORT/INTEGER). This PR had usedBIGINT. Both describeBasicType.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
left a comment
There was a problem hiding this comment.
+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
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_numdefault documented as "job parallelism" but the effective default inJdbcSourceTableConfig(DEFAULT_PARTITION_NUMBER = 10) is 10: Mysql, PostgreSQL, SqlServer, OceanBase, Redshift, Vertica (en+zh, table cells + prose sections).DuckDBTypeConverterand its unit tests: unsigned ints (UTINYINT→TINYINT,USMALLINT→SMALLINT,UINTEGER→INT,UBIGINT→BIGINT— not the shifted mapping the doc claimed),DECIMAL>38truncates precision/scale to 38 (notDECIMAL(38,18)),ARRAY/STRUCT/MAP→STRING(not BYTES) on read, and on writeTINYINT/SMALLINTare not widened toINTEGERwhileARRAY/ROW/MAPthrow a conversion error instead of mapping to BLOB (source+sink, en+zh).${table}placeholder and claimed${table_name}(the real framework placeholder perTablePlaceholder.java) was deprecated — the doc had the relationship inverted and the example config would fail at runtime (en+zh).INT UNSIGNED/BIGINTtoLONG(SeaTunnel type isBIGINT, cf.VerticaTypeMapper);partition_lower_bound/partition_upper_bounddocumented asBigDecimalbut declaredstringTypeinJdbcSourceOptions; sink Description claimed XA exactly-once support, contradicting the doc's own Key Features note and the Vertica dialect (en+zh).BIGINT→LONGandDECIMAL→DECIMAL(38,18)did not matchDB2TypeConverter(en+zh).TINYINTto both BYTE and SMALLINT (duplicate/contradictory row); Oracle-modeNumber(p), p>18maps toDECIMAL(min(p,38), 0)perOracleTypeConverter, notDECIMAL(38,18)(en+zh).driverrow said "if you use MySQL the value iscom.mysql.cj.jdbc.Driver" — copy-paste from the MySQL doc (en+zh).formatdefault documented asjsonbut code default isTEXT(HttpSourceOptions); pagination example usedpage_step, an option that does not exist anywhere in connector-http (en+zh).commentfor...\_comment(not a type — it's a string) andfield_typeomitted the ConfigMap variant that the doc's own section andAssertRuleParseraccept (en+zh).multi_table_sink_replicadefault 1, retry/backoff/poll options) (en+zh).auth_typesummary cell omittedapi_key_encoded(supported by the enum and documented further down the same page); removed a duplicated### Schema Evolutionheading (en).MONEY→DECIMAL(p,s)butPostgresTypeConvertermaps MONEY toDECIMAL(30,2).en/zh parity:
whereoption 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.sheet_namerow 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/enanddocs/zhwhere 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
JdbcSourceTableConfig,DuckDBTypeConverter(+ its unit tests),VerticaTypeMapper,DB2TypeConverter,OracleTypeConverter,PostgresTypeConverter,TablePlaceholder,HttpSourceOptions/HttpSourceReader(pagination keys),RocketMqSourceOptions,PulsarSourceOptions,AssertConfig,AirtableSourceFactory/AirtableSinkFactory,SinkConnectorCommonOptions,ElasticsearchBaseOptions.continue-on-errorupstream; no links were added or removed by this change, so it was not run locally.