-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Feature][Transform-V2] Support jsonpath extracting multiple fields in a configuration block #9712
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
Merged
corgy-w
merged 6 commits into
apache:dev
from
TongchengOpenSource:optimze-simple-jsonpath
Aug 26, 2025
Merged
[Feature][Transform-V2] Support jsonpath extracting multiple fields in a configuration block #9712
corgy-w
merged 6 commits into
apache:dev
from
TongchengOpenSource:optimze-simple-jsonpath
Aug 26, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a30674e to
a516fbe
Compare
…n a configuration block add doc update doc
b8de226 to
1dd9bc6
Compare
Hisoka-X
reviewed
Aug 19, 2025
...sforms-v2/src/main/java/org/apache/seatunnel/transform/jsonpath/JsonPathTransformConfig.java
Outdated
Show resolved
Hide resolved
Hisoka-X
reviewed
Aug 20, 2025
docs/en/transform-v2/jsonpath.md
Outdated
| columns = [ | ||
| { | ||
| "src_field" = "data" | ||
| "path" = "$.data.c_string;$.data.c_boolean;$.data.c_integer;$.data.c_float;$.data.c_double;$.data.c_decimal;$.data.c_date;$.data.c_datetime;$.data.c_array;$.data.c_map_array" |
Member
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.
I'm thinking can we use array type value?
"path" = ["$.data.c_string", $.data.c_boolean]
Member
|
waiting test case passes. |
Contributor
Author
done. |
Hisoka-X
approved these changes
Aug 26, 2025
corgy-w
approved these changes
Aug 26, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose of this pull request
Support jsonpath extracting multiple fields in a configuration block
transform { JsonPath { plugin_input = "fake" plugin_output = "fake1" columns = [ { "src_field" = "data" "path" = ["$.data.c_string", "$.data.c_boolean", "$.data.c_integer", "$.data.c_float", "$.data.c_double", "$.data.c_decimal", "$.data.c_date", "$.data.c_datetime", "$.data.c_array", "$.data.c_map_array"] "dest_field" = ["c1_string", "c1_boolean", "c1_integer", "c1_float", "c1_double", "c1_decimal", "c1_date", "c1_datetime", "c1_array", "c1_map_array"] "dest_type" = ["string", "boolean", "int", "float", "double", "decimal(4,2)", "date", "time", "array<string>", "array<map<string, string>>"] } ] } }Does this PR introduce any user-facing change?
Yes.
How was this patch tested?
Add new tests
Check list
New License Guide