-
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][Connector-V2] Support TableSourceFactory/TableSinkFactory on http #5816
Conversation
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 change getProducedType
to getProducedCatalogTables
in HttpSource
. https://github.com/apache/seatunnel/pull/5816/files#diff-7c704c6a3927123b31b41483102f286339da3832309810496f19410c2548f06fR153
done PTAL |
public void setTypeInfo(SeaTunnelRowType seaTunnelRowType) { | ||
this.seaTunnelRowType = seaTunnelRowType; | ||
public String getPluginName() { | ||
return "Http"; |
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 think you can use CONNECTOR_IDENTITY
to replace Http
now.
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.
done
@@ -49,7 +61,6 @@ public OptionRule.Builder getHttpBuilder() { | |||
.optional(HttpConfig.FORMAT) | |||
.optional(HttpConfig.JSON_FIELD) | |||
.optional(HttpConfig.CONTENT_FIELD) | |||
.conditional(HttpConfig.METHOD, HttpRequestMethod.POST, HttpConfig.BODY) |
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 remove this?
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.
Because when using the params parameter, the post method is also used without a body
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.
Yes, And you need add HttpConfig.BODY
use .optional(HttpConfig.BODY)
. Otherwise, the body parameter will be lost.
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.
done PTAL @EricJoy2048
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 @jackyyyyyssss !
…n http (apache#5816) --------- Co-authored-by: 80597928 <673421862@qq.com>
Purpose of this pull request
#5807 #5651 [Feature][Connector-V2] Support TableSourceFactory/TableSinkFactory on http
Does this PR introduce any user-facing change?
How was this patch tested?
improve current e2e test
Check list
New License Guide
release-note
.