realvictorprm
01/19/2024, 9:59 AMMartijn Visser
01/19/2024, 4:11 PMrealvictorprm
01/19/2024, 4:38 PMMartijn Visser
01/19/2024, 4:44 PMrealvictorprm
01/22/2024, 8:30 AMSelect XYZ as XYZ, ..., NOW() as SomeTimeColumnName From SomeSourceTable
We added that NOW() as SomeTimeColumnName and that essentially broke the complete changelog creation.Martijn Visser
01/22/2024, 8:32 AMNOW() always return a non-deterministic result. Executing that query at T0 returns result A, while running that at T1 would return result B. So the problem seems to be that you're running a query that's not deterministic.realvictorprm
01/22/2024, 8:35 AMrealvictorprm
01/22/2024, 8:35 AMMartijn Visser
01/22/2024, 8:35 AMstructure wise the change is deterministic thoughHow? If you recover from a checkpoint that was made 5 minutes ago, how would you get exactly the same result?
Martijn Visser
01/22/2024, 8:36 AMrealvictorprm
01/22/2024, 8:38 AMMartijn Visser
01/22/2024, 8:48 AMafter all it should save when a record was created.No it shouldn't, from the docs:
For Flink SQL, the determinism provided is limited to the computation only, because it does not store user data itself (here it is necessary to distinguish between the managed internal state in streaming mode and the user data itself), so the Source connector’s implementation that cannot provide deterministic back read will bring non-determinism of the input data, which may produce non-deterministic results.https://nightlies.apache.org/flink/flink-docs-master/docs/dev/table/concepts/determinism/#non-deterministic-back-read-of-source-connector
realvictorprm
01/22/2024, 8:50 AMrealvictorprm
01/22/2024, 9:03 AM