Trying to understand what Flink is telling me here...
# troubleshooting
d
Trying to understand what Flink is telling me here:
Copy code
StreamPhysicalOverAggregate doesn't support consuming update and delete changes which is produced by node ChangelogNormalize(key=[primary_key])
Reading from a postgres-cdc connector in upsert mode and attempting to process each incoming row, there will never be updates or deletes from this table. And ways of turning off or filtering these seem to not be successful: • Attempted converting to changelog stream and filtering updates/deletes(there won't be any) then back to a table. Apparently postgres-cdc doesn't support adding the metadata which would help filter changes? unclear on the answer here. • Attempted something like
select primary_key, LAST_VALUE(col1), LAST_VALUE(col2) from input_table
(over partitions) this doesn't seem to work either for reasons that are unclear Really confused about how to proceed here or where to look for more guidance. How can I convert my stream to an append only stream? or configured debezium to only generate inserts?
c
If your just wanting appends. Then just use the StreamTableEnvironment class, and you will have access to append only table functions. Upsert by nature is looking to update or insert, based on the keys provided.
👍 1
d
Hmm Ok, I guess I'm not sure how to figure out which of my tables is causing this. I do get the error on my final 'execute_insert' into my sink, but the sink has a primary key defined(as does the source)
This is the closest I could find to my issue, which does indeed have a top-n query: https://issues.apache.org/jira/browse/FLINK-26802