choucmei commented on issue #4732: URL: https://github.com/apache/seatunnel/issues/4732#issuecomment-1556759574
> Can we shard the data directly, just like the snapshot stage of mysqlflinkcdc like this https://github.com/ververica/flink-cdc-connectors/blob/2d0cfeb1d3aca481004d146176fcc3a08ed31d86/flink-connector-mysql-cdc/src/main/java/com/ververica/cdc/connectors/mysql/source/assigners/MySqlChunkSplitter.java#L61 > Such a situation could occur if the partition_column has null values, but our recommendation is to use the primary key column for partition_column. Of course, there are also measures that can be taken to prevent this from happening, such as adding checks to see if the partition_column contains null values, and stopping execution if they exist. What do you think about this? @choucmei USing PK or stopping this can be solved, but not graceful. I perfer use `first part "SELECT * FROM (%s) tt where %s <= ?" and las part "SELECT * FROM (%s) tt where %s >= ?" ` ,and this solution is similar to FlinkCDC -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
