Hi, Gabor. Thanks for driving this FLIP and this immediately reminded me of 
exploring the status of the Source connector like Kafka or MySQLCDC to 
understand the progress of reading information.

In SourceOperator, the state of reader in contained in a ListState named 
`SourceReaderState`[1], however, the state type of `SourceReaderState` is 
`byte[]`, so I am worried that we can't get any understandable information 
using this connector. Do we consider supporting this scenario?

If we want to support this scenario, perhaps we need to add more parameters 
like fields.#.state-version-serializer and fields.#.state-version to To specify 
the org.apache.flink.core.io.SimpleVersionedSerializer[2] and version to be 
used, And it also requires more complex implementation.

Do I have any misunderstandings? Is this requirement something we need to 
support, or will it need support in the future.


[1] 
https://github.com/apache/flink/blob/9e38f32889e097f5a9b81f949643a2b037c1035c/flink-runtime/src/main/java/org/apache/flink/streaming/api/operators/SourceOperator.java#L109
[2] 
https://github.com/apache/flink/blob/9e38f32889e097f5a9b81f949643a2b037c1035c/flink-core/src/main/java/org/apache/flink/core/io/SimpleVersionedSerializer.java#L50





> 2024年12月18日 17:43,Gabor Somogyi <gabor.g.somo...@gmail.com> 写道:
> 
> Hi All,
> 
> I'd like to start a discussion of FLIP-496: SQL connector for keyed state
> data [1].
> Feel free to add your thoughts to make this feature better.
> 
> [1]
> https://cwiki.apache.org/confluence/display/FLINK/FLIP-496%3A+SQL+connector+for+keyed+state+data
> 
> BR,
> G

Reply via email to