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/02 02:38:11 UTC
[I] [Feature][Transform-V2] allow package and class name in DynamicCompile java source [seatunnel]
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: commits-unsubscribe@seatunnel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature][Transform-V2] allow package and class name in DynamicCompile java source [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #8418: [Feature][Transform-V2] allow package and class name in DynamicCompile java source
URL: 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
Re: [I] [Feature][Transform-V2] allow package and class name in DynamicCompile java source [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8418:
URL: https://github.com/apache/seatunnel/issues/8418#issuecomment-2692489356
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.
--
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-V2] allow package and class name in DynamicCompile java source [seatunnel]
Posted by "jeacott (via GitHub)" <gi...@apache.org>.
jeacott commented on issue #8418:
URL: https://github.com/apache/seatunnel/issues/8418#issuecomment-2738770744
This is more than annoying, it means that we cannot create fields to share or cache state between the two interface methods.
--
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-V2] allow package and class name in DynamicCompile java source [seatunnel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #8418:
URL: https://github.com/apache/seatunnel/issues/8418#issuecomment-2657991541
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
--
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