yinrui97 opened a new issue, #8418: URL: https://github.com/apache/seatunnel/issues/8418
### Search before asking - [X] I had searched in the [feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement. ### Description Looked at the doc in https://seatunnel.apache.org/zh-CN/docs/2.3.8/transform-v2/dynamic-compile, see below example class name and package name are not allowed in source code, if I added them, there will be compile error. This is quite strange, you know, the source code is not validated java class. If I need to modify the source code, I have to manually add package name and class name, after completion, I remove the package name and class name before running seatunnal job, this is quite incontinent. In groovy DynamicCompile example, class name is allowed, I expect java DynamicCompile can also support this. ``` transform { DynamicCompile { source_table_name = "fake" result_table_name = "java_out" compile_language="JAVA" compile_pattern="SOURCE_CODE" source_code=""" import org.apache.seatunnel.api.table.catalog.Column; import org.apache.seatunnel.transform.common.SeaTunnelRowAccessor; import org.apache.seatunnel.api.table.catalog.*; import org.apache.seatunnel.api.table.type.*; import java.util.ArrayList; public Column[] getInlineOutputColumns(CatalogTable inputCatalogTable) { ... } public Object[] getInlineOutputFieldValues(SeaTunnelRowAccessor inputRow) { ... } """ } } ``` ### Usage Scenario Use java DynamicCompile source code to customize transformation. ### Related issues _No response_ ### Are you willing to submit a PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
