-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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][Transform] add JsonPath transform #5632
Conversation
[Transform][Jsonpath]add JsonPathTransform
[Transform][Jsonpath][Doc] add doc
[Transform][Jsonpath][Doc]update release
[Transform][Jsonpath]private variables may not use concurrent containers
pom.xml
Outdated
@@ -128,6 +128,7 @@ | |||
<testcontainer.version>1.17.6</testcontainer.version> | |||
<spotless.version>2.29.0</spotless.version> | |||
<jsqlparser.version>4.5</jsqlparser.version> | |||
<jsonpath.version>2.8.0</jsonpath.version> |
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.
There already exist 2.7.0
, it's not a good idea to used multiple version json-path
.
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.
not found a dependency for 2.7.0 yet.Could you point out where it is thank you
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.
seatunnel/seatunnel-connectors-v2/connector-http/connector-http-base/pom.xml
Lines 32 to 37 in a15b79f
<properties> | |
<httpclient.version>4.5.13</httpclient.version> | |
<httpcore.version>4.4.4</httpcore.version> | |
<guava-retrying.version>2.0.0</guava-retrying.version> | |
<json-path.version>2.7.0</json-path.version> | |
</properties> |
…ttpbase [Transform][Jsonpath] jsonpath dependency use the same version with httpbase
@EricJoy2048 could you review this pr,thx |
jsonpath depend on
|
seatunnel-dist/release-docs/licenses/LICENSE-jayway-jsonpath.txt
Outdated
Show resolved
Hide resolved
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.
Please add parse array and parse nest object test cases.
import static org.apache.seatunnel.transform.exception.JsonPathTransformErrorCode.JSON_PATH_COMPILE_ERROR; | ||
|
||
@Slf4j | ||
@AutoService(JsonPathTransform.class) |
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.
Why not Transform.class?
private String path; | ||
|
||
private String srcField; | ||
|
||
private String destField; |
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.
final could be better.
@ruanwenjun jun✌🏻 please review |
CI failed, you need to check if the code has miss something. |
well,I finally fixed the problem. now, ci is successed |
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.
Please add e2e test cases to parse array
nest object
private JsonPathTransformConfig config; | ||
private SeaTunnelRowType seaTunnelRowType; |
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.
final be better
…datatype-jsr310 to support parse localDateTime
…sion to seaTunnel sqlType
@ruanwenjun @ruanwenjun @EricJoy2048 |
@ruanwenjun jun✌🏻 please review |
@ruanwenjun @TyrantLucifer It's been a long time. I miss you so much(✺ω✺) |
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.
Thanks @FuYouJ !
already add.
You're welcome! |
related issue
#5633
Purpose of this pull request
Does this PR introduce any user-facing change?
How was this patch tested?
Check list
New License Guide
release-note
.