Skip to content
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

[NativeIO][Flink] Fix Flink CDC Data Sort Bug and Handle DataType Change Issues from Mysql to LakeSoul #175

Merged
merged 9 commits into from
Mar 20, 2023

Conversation

F-PHantam
Copy link
Contributor

@F-PHantam F-PHantam commented Mar 20, 2023

In this pr, fix some problems as follow:

  1. fix Flink cdc data sort bug, use binlog file index and binlog position instead of SourceRecord.source.ts_ms;
  2. Time type should be converted to int64 since spark has no specific time type;
  3. Timestamp and DateTime from mysql will change to Timestamp with UTC format;
  4. Compact operation will ship if all partitions are compacted.

close #165 close #166

@F-PHantam F-PHantam added bug Something isn't working flink flink support into lakesoul native-io labels Mar 20, 2023
@dmetasoul01 dmetasoul01 merged commit f976154 into main Mar 20, 2023
@dmetasoul01 dmetasoul01 deleted the dev/native_io_timezone_handling branch March 20, 2023 09:21
lypnaruto pushed a commit that referenced this pull request Apr 4, 2023
…nge Issues from Mysql to LakeSoul (#175)

* temp commit

* timeZone is local time zone when requestSchema no assign

* flink writes timestamp data in UTC format by default

* flink writes timestamp data in UTC format by default

* transform storage timezone with native-io

* cdc event sort by using binlog file index and binlog position instead of SourceRecord.source.ts_ms

* parse TimeType from mysql to LongType in lakeSoul

* parse DataTime from mysql to Timestamp in lakeSoul with UTC format and millisecond to microsecond

* if all partitions are compacted, ship this compact operation

---------

Co-authored-by: zenghua <441651826@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flink flink support into lakesoul native-io
Projects
None yet
3 participants