Sql_last_value not working properly

This looks like the problem I had two years ago: JDBC to ElasticSearch: duplicate records?

tldr: try to put an order_by updated_at to your query

1 Like