hutiefang76 opened a new pull request, #13631:
URL: https://github.com/apache/seatunnel/pull/13631

   ### Purpose of this pull request
   
   Part of #12809: the Metadata documentation slice assigned in 
https://github.com/apache/seatunnel/issues/12809#issuecomment-7239205117.
   
   Both English and Chinese pages list the multi-table options but do not 
explain their interactions or show a multi-table configuration. This adds the 
missing option sections and matching examples while retaining the existing 
metadata fields, security guidance and single-table examples. It changes only 
`docs/en/transforms/metadata.md` and `docs/zh/transforms/metadata.md`.
   
   The option names, defaults and validation were checked against 
`MetadataTransformFactory#optionRule()`, `MetadataTransformConfig`, 
`TransformCommonOptions`, `MetadataMultiCatalogTransform` and its 
`AbstractMultiCatalogMapTransform` / `AbstractMultiCatalogTransform` 
inheritance. The source-specific additions proposed in #11401 and #10478 are 
outside this patch.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, documentation only, for the existing behavior on `dev`:
   
   - Explain exact per-table overrides, regex-limited fallback rules and 
passthrough when no rule applies.
   - Document the conditional `metadata_fields` requirement, the empty-list 
default of `table_transform`, duplicate-path validation and explicit 
`FIRST_MATCH` / ordered `ALL_MATCH` behavior.
   - Add a complete FakeSource → Metadata → Console example and a replacement 
transform block showing per-table-only configuration. The new HOCON blocks are 
identical in both languages.
   
   No runtime, option, default or compatibility behavior changes.
   
   ### How was this patch tested?
   
   Using JDK 11 and the repository Maven wrapper:
   
   ```sh
   ./mvnw -B -T1 -o \
     -pl seatunnel-transforms-v2,seatunnel-connectors-v2/connector-fake -am \
     
'-Dtest=Metadata*Test,AbstractMultiCatalogTransformTest,MultipleTableFakeSourceConfigTest'
 \
     -Dsurefire.failIfNoSpecifiedTests=false -DfailIfNoTests=false \
     -DskipUT=false -DskipIT=true -Dlicense.skipAddThirdParty=true 
-Dskip.ui=true verify
   ```
   
   Result on this commit: **45 existing tests executed, 0 failures, 0 errors, 0 
skipped**. No tests were added because this patch changes only documentation.
   
   Additional local validation:
   
   - Parsed the new HOCON with SeaTunnel's configuration parser and exercised 
the actual FakeSource configuration, catalog schemas and Metadata transform 
components: 35 assertions passed for fallback/override routing, per-table-only 
passthrough, regex handling, duplicate-path validation, `FIRST_MATCH` and 
chained `ALL_MATCH`. This was a standalone component check, not a live engine 
job.
   - Root `./mvnw -B -T1 -DskipTests -DskipIT=true 
-Dlicense.skipAddThirdParty=true -Dskip.ui=true verify`: all 339 reactor 
modules succeeded. **Tests were skipped in this root build**; the 45 executed 
tests above are a separate run.
   - `./mvnw -B -T1 -o -Dskip.ui=true spotless:apply` and `git diff --check` 
passed; Spotless produced no additional tracked changes. Markdown formatting is 
disabled in the current project Spotless configuration.
   - Checked matching English/Chinese configurations, balanced code fences and 
the relative links in the added sections.
   
   No documentation site build or live Zeta/Flink/Spark job was run. The 
maintainer explicitly accepted component/configuration validation for this 
documentation-only slice. Remote CI has not been claimed as passed; it will be 
checked on the published commit.
   
   ### Check list
   
   - [x] Documentation updated in English and Chinese.
   - [x] No new JARs, connector code or incompatible changes; the corresponding 
license, connector-registration and incompatible-change checklist items are not 
applicable.
   
   AI-generated documentation and PR description, prepared with DeepSeek V4 Pro 
and Codex and validated as described above.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to