-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature][st-engine] Support for transform-v2 API #3145
[Feature][st-engine] Support for transform-v2 API #3145
Conversation
9d5254c
to
7ad1b54
Compare
0196c32
to
e68e143
Compare
@EricJoy2048 @ashulin @Hisoka-X @ic4y @CalvinKirs tx. PTAL |
@531651225 @TaoZex @TyrantLucifer @liugddx @laglangyue th. PTAL |
public static final String PROJECT_ROOT_PATH = getProjectRootPath(); | ||
|
||
private static String getProjectRootPath() { | ||
String e2eRootModuleDir = "seatunnel-e2e"; | ||
Path path = Paths.get(System.getProperty("user.dir")); | ||
while (!path.endsWith(Paths.get(e2eRootModuleDir))) { | ||
path = path.getParent(); | ||
} | ||
return path.getParent().toString(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update get root path in e2e module
TestCaseInvocationContextProvider.class | ||
}) | ||
@TestInstance(TestInstance.Lifecycle.PER_CLASS) | ||
@DisabledOnContainer(value = {}, type = {EngineType.FLINK, EngineType.SPARK}, disabledReason = "TODO: Transform v2 translation to spark/flink isn't completed") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now disable FLINK、SPARK
@EricJoy2048 Are we should support repartition type transform in this version? |
d28a173
to
9661564
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we need to implement a subscript-based ReplaceTransform method that replaces the field name by the subscript.
seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/CopyFieldTransform.java
Outdated
Show resolved
Hide resolved
9661564
to
710555d
Compare
52b3b5b
to
cdbf254
Compare
seatunnel-common/src/main/java/org/apache/seatunnel/common/config/Common.java
Outdated
Show resolved
Hide resolved
...-starter/src/main/java/org/apache/seatunnel/core/starter/flink/execution/FlinkExecution.java
Outdated
Show resolved
Hide resolved
seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/CopyFieldTransform.java
Outdated
Show resolved
Hide resolved
seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/ReplaceTransform.java
Outdated
Show resolved
Hide resolved
seatunnel-transforms-v2/src/main/java/org/apache/seatunnel/transform/SplitTransform.java
Outdated
Show resolved
Hide resolved
I suggest to add the support of repartition transform in the subsequent plans. |
c25cb06
to
f7acd79
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
<artifactId>seatunnel-transforms-v2</artifactId> | ||
<version>${project.version}</version> | ||
<scope>provided</scope> | ||
</dependency> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should also need to be added to the release
profile.
@CalvinKirs CC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed. added to release
profile
@ashulin
Release binary package: - Move engine starter jar from `lib/` to `starter/` dir - Outpout `seatunnel-transforms-v2.jar` to `lib/` dir Maven modules: - Add seatunnel-transforms-v2 module - Add seatunnel-transforms-v2-e2e module Engine Starter: - Add `lib/` to task execute classpath ST-Engine: - Support for Split、Replace、Filter transform E2E: - Copy `seatunnel-transforms-v2.jar` into container `lib/` dir - Improve get project root path for e2e test module
f7acd79
to
31deed0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
Purpose of this pull request
Reference #2678
Release binary package:
- Move engine starter jar from
lib/
tostarter/
dir- Outpout
seatunnel-transforms-v2.jar
tolib/
dirMaven modules:
- Add seatunnel-transforms-v2 module
- Add seatunnel-transforms-v2-e2e module
Engine Starter:
- Add
lib/
to task execute classpathST-Engine:
- Support for Split、Replace、Filter transform
E2E:
- Copy
seatunnel-transforms-v2.jar
into containerlib/
dir- Improve get project root path for e2e test module
Check list
New License Guide