I have a Flink application that processes data from 2 streams. I am using a Table API where i want to consume data from one stream1 and query another stream2 and get the record with the latest timestamp -
I have this now -
def insert_into_output(output_table_name, event_table_name, code_table_name):
return """
INSERT INTO {0} (ip, sn, code, timestamp)
SELECT DISTINCT
ip, sn, code, timestamp
FROM {2} WHERE
sn =
(SELECT
sn
FROM {1}
WHERE timestamp =
(SELECT MAX(timestamp) FROM {1}))
""".format(output_table_name, event_table_name, code_table_name)
Unfortunately, i am getting an error stating - doesn't support consuming update and delete changes which is produced by node GroupAggregate(groupBy=[ip, sn, code, timestamp], select=[ip, sn, code, timestamp])
. Any ideas?