hey! i have a Flink SQL job where I do a <event-ti...
# troubleshooting
w
hey! i have a Flink SQL job where I do a event-time temporal join with two other tables. The versioned tables have a watermarking strategy based on the kafka_timestamp which I assume to be ordered per partition and therefore I did not configure any out-of-orderness, i.e.
Copy code
.column_by_metadata("kafka_time", DataTypes.TIMESTAMP(3), "timestamp")
.watermark("kafka_time", "kafka_time")
the left table/probe table does use a timestamp which might be out-of-order by a few seconds so I configured it like this
Copy code
.watermark("trigger_time", "trigger_time - interval '5' second")
With one of the versioned tables I do a inner-join and for the other one I do a left-join. For the latter, I noticed some of the output events to contain nulls because that version is probably not in state anymore. I don't really have an intuition why this would happen? The left-table does have a watermark 5 seconds in the past, so I thought that this ensures that the state of the right tables would be preserved within that period? Or do also need to configure out-of-orderness for the versioned tables, even though there is no late data there because we use the kafka_timestamp as watermark? Hope someone can help me understand!
It could also be that it does behave as I expect but the allowed lateness should just be higher..