CryoThrust opened a new pull request, #13292:
URL: https://github.com/apache/seatunnel/pull/13292
### Purpose of this pull request
I am contributing to Apache SeaTunnel by bringing the DynamicCompile guide
up to the transform documentation standard in #12809.
The current pages list source/path options without their conditional
requirements and provide transform fragments without a source or sink. The
shared multi-table paragraph also leaves rule completeness, precedence,
pass-through and duplicate-path handling implicit.
This documentation-only change updates both English and Chinese pages with:
- A five-column options table and a section for each option, including
default-aware source/path requirements and complete per-table rules.
- The Java class-body contract, Groovy/Scala class forms, matching
column/value method signatures, dependency placement and source-file
initialization behavior. The existing Scala-on-Zeta restriction and
trusted-code warning are retained.
- Exact per-table precedence, unchanged unlisted tables, and the requirement
to set `rule_match_mode` explicitly when repeating a table path.
- Three complete FakeSource → DynamicCompile → Console configurations, a
compact input/output schema table, and working Groovy/Scala alternatives.
Compared against `DynamicCompileTransformConfig`,
`DynamicCompileTransformFactory#optionRule()`, `DynamicCompileTransform`, its
Java/Groovy/Scala parsers, `TransformCommonOptions`,
`AbstractMultiCatalogTransform` and `MultipleFieldOutputTransform` on dev
`67adb0a27`.
Related: #12809. This completes only the DynamicCompile row.
### Does this PR introduce _any_ user-facing change?
Yes, documentation changes in `docs/en/transforms/dynamic-compile.md` and
`docs/zh/transforms/dynamic-compile.md`. No runtime, API or configuration
behavior changes.
### How was this patch tested?
On JDK 11:
```sh
mvn -B -ntp -pl seatunnel-transforms-v2 \
-Dtest=DynamicCompileTransformFactoryTest,AbstractMultiCatalogTransformTest \
-DfailIfNoTests=false test
mvn -B -ntp -pl seatunnel-transforms-v2 spotless:apply verify -DskipTests
git diff --check
```
All 28 existing tests pass, with no failures, errors or skips. Module
formatting, packaging and verification pass; no new repository tests were added
for the documentation-only change.
The [standalone example check and reproduction
instructions](https://gist.github.com/CryoThrust/3eed33d9892a08cc81a626ede7a87e83)
read the actual Markdown fences. It confirms EN/ZH example equality, parses
all four HOCON blocks, constructs the real FakeSource schemas, validates
transform options, compiles all three language examples, and checks all ten
output schemas/rows across the three Java routing jobs and two language
substitutions. It includes the unchanged `demo.returns` case in the
per-table-only job.
This is local parser/compiler/transform verification. No distributed Zeta,
Flink or Spark job execution, source emission or Console sink execution is
claimed.
### Check list
- [x] English and Chinese documentation updated together.
- [x] No new dependencies, binaries or incompatible changes.
--
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]