Hello, I'm trying to run a flink sql job with outp...
# troubleshooting
s
Hello, I'm trying to run a flink sql job with output to a table. In the logs, I get warning messages like this a LOT. I have already verified that
table.exec.state.ttl=0ms
Is there any other reason why these messages would appear?
Copy code
2024-03-27 19:25:23,475 INFO  org.apache.flink.table.runtime.operators.sink.SinkUpsertMaterializer [] - The state is cleared because of state ttl. This will result in incorrect result. You can increase the state ttl to avoid this.
Figured out the issue. Just posting here for future reference - The query was selecting
current_timestamp
as one of the columns. Of course this value will change on every evaluation. So flink was not able to "find" a previous version of the row, and it thought that the state was cleared. Removing
current_timestamp
from the list of selected columns fixed the issue