Skip to content
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

Merged
merged 1 commit into from
Nov 1, 2022

Conversation

hailin0
Copy link
Member

@hailin0 hailin0 commented Oct 19, 2022

Purpose of this pull request

Reference #2678

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

Check list

@hailin0 hailin0 force-pushed the st-engine-support-new-transform-api branch 4 times, most recently from 9d5254c to 7ad1b54 Compare October 21, 2022 08:34
@hailin0 hailin0 changed the title [Feature][st-engine] Support for transform row data stream using transform-v2 API [Feature][st-engine] Support for transform-v2 API Oct 21, 2022
@hailin0
Copy link
Member Author

hailin0 commented Oct 21, 2022

image

@hailin0 hailin0 force-pushed the st-engine-support-new-transform-api branch 6 times, most recently from 0196c32 to e68e143 Compare October 22, 2022 14:33
@hailin0 hailin0 marked this pull request as ready for review October 22, 2022 17:21
@hailin0
Copy link
Member Author

hailin0 commented Oct 24, 2022

@hailin0
Copy link
Member Author

hailin0 commented Oct 24, 2022

Comment on lines +55 to +64
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();
}
Copy link
Member Author

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")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now disable FLINK、SPARK

@Hisoka-X
Copy link
Member

@EricJoy2048 Are we should support repartition type transform in this version?

@hailin0 hailin0 force-pushed the st-engine-support-new-transform-api branch 3 times, most recently from d28a173 to 9661564 Compare October 24, 2022 10:24
Copy link
Contributor

@TaoZex TaoZex left a 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.

@hailin0 hailin0 force-pushed the st-engine-support-new-transform-api branch from 9661564 to 710555d Compare October 24, 2022 16:13
@hailin0 hailin0 force-pushed the st-engine-support-new-transform-api branch 5 times, most recently from 52b3b5b to cdbf254 Compare October 31, 2022 03:41
@EricJoy2048
Copy link
Member

@EricJoy2048 Are we should support repartition type transform in this version?

I suggest to add the support of repartition transform in the subsequent plans.

@hailin0 hailin0 force-pushed the st-engine-support-new-transform-api branch 3 times, most recently from c25cb06 to f7acd79 Compare October 31, 2022 13:56
Hisoka-X
Hisoka-X previously approved these changes Nov 1, 2022
Copy link
Member

@Hisoka-X Hisoka-X left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

ashulin
ashulin previously approved these changes Nov 1, 2022
<artifactId>seatunnel-transforms-v2</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
Copy link
Member

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

Copy link
Member Author

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
@hailin0 hailin0 dismissed stale reviews from ashulin and Hisoka-X via 31deed0 November 1, 2022 03:15
@hailin0 hailin0 force-pushed the st-engine-support-new-transform-api branch from f7acd79 to 31deed0 Compare November 1, 2022 03:15
Copy link
Member

@EricJoy2048 EricJoy2048 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@TaoZex TaoZex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants