You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "yinrui97 (via GitHub)" <gi...@apache.org> on 2025/01/03 09:31:44 UTC
[I] [Feature][Transform] allow class name and package name in java dynamic-compile [seatunnel]
yinrui97 opened a new issue, #8441:
URL: https://github.com/apache/seatunnel/issues/8441
### 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
_No response_
### 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: commits-unsubscribe@seatunnel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature][Transform] allow class name and package name in java dynamic-compile [seatunnel]
Posted by "yinrui97 (via GitHub)" <gi...@apache.org>.
yinrui97 closed issue #8441: [Feature][Transform] allow class name and package name in java dynamic-compile
URL: https://github.com/apache/seatunnel/issues/8441
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature][Transform] allow class name and package name in java dynamic-compile [seatunnel]
Posted by "yinrui97 (via GitHub)" <gi...@apache.org>.
yinrui97 commented on issue #8441:
URL: https://github.com/apache/seatunnel/issues/8441#issuecomment-2576834848
duplicated with https://github.com/apache/seatunnel/issues/8418
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org