-
Notifications
You must be signed in to change notification settings - Fork 177
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
[FLINK-33461][Connector/JDBC] Support streaming related semantics for the new JDBC source #119
Conversation
a2f6633
to
a2fb896
Compare
8f661db
to
e14152d
Compare
Hi, @eskabetxe @leonardBang @Jiabao-Sun Could you help have a look if you had the free time ? |
...-jdbc/src/main/java/org/apache/flink/connector/jdbc/utils/ContinuousEnumerationSettings.java
Outdated
Show resolved
Hide resolved
...jdbc/src/test/java/org/apache/flink/connector/jdbc/source/JdbcSourceStreamRelatedITCase.java
Outdated
Show resolved
Hide resolved
437372f
to
2361ebb
Compare
2fb94f6
to
e00fe68
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
...r-jdbc/src/main/java/org/apache/flink/connector/jdbc/utils/ContinuousUnBoundingSettings.java
Show resolved
Hide resolved
5fd7b4a
to
83365e3
Compare
1f6a037
to
4b056a6
Compare
… the new JDBC source
|
||
## `JdbcSink.sink` | ||
## Source of JDBC Connector(Experimental) |
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.
## Source of JDBC Connector(Experimental) | |
## Source of JDBC Connector(Experimental) |
This part is not needed.
Configuration goes as follow (see also {{< javadoc file="org/apache/flink/connector/jdbc/source/JdbcSource.html" name="JdbcSource javadoc" >}} | ||
and {{< javadoc file="org/apache/flink/connector/jdbc/source/JdbcSourceBuilder.html" name="JdbcSourceBuilder javadoc" >}}). | ||
|
||
### `JdbcSource.builder` |
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.
### `JdbcSource.builder` | |
## Jdbc Source |
Jdbc Source can be as the second level instead of the third level. You can refer Kafka connector doc[1]. Kafka Source
, Kafka SourceFunction
and Kafka Producer
as the second level. We don't need to distinguish the source or sink. (Current level is a little fine-grained.)
[1] https://nightlies.apache.org/flink/flink-docs-master/docs/connectors/datastream/kafka/#kafka-source
``` | ||
|
||
#### Minimalist Streaming Semantic and ContinuousUnBoundingSettings | ||
If you want to generate continuous milliseconds parameters based on sliding-window, |
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.
If you want to generate continuous milliseconds parameters based on sliding-window, | |
If you want to generate continuous milliseconds parameters based on sliding-window, |
Add the empty line.
3508075
to
78efce0
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.
Thanks @1996fanrui for the review.
I updated based on your comments.
PTAL if you had the free time~
CC @eskabetxe
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 @RocMarshal for the hard work, and thanks @eskabetxe for the review!
LGTM, I will merge it next Tuesday(in 4 days) if there are no objections.
👍 Thank you @1996fanrui @eskabetxe very much for your review and attention for the feature ! |
getLatestOptionalState
&setOptionalState
forJdbcParameterValuesProvider
to process provider state.SlideTimingParamameterProvider
for supporting continuous splitsResultSet.TYPE_SCROLL_INSENSITIVE
JdbcSourceStreamRelatedITCase
for testing.