The create table in the code is not correct, as Flink is ingesting Location and Condition and not inserted_at.
So either the create table should be changed to:
CREATE TABLE IF NOT EXISTS "doc"."weather_flink_sink" (
"location" OBJECT(DYNAMIC),
"current" OBJECT(DYNAMIC)
)
Or like we change inserted_at into a generated column.
CREATE TABLE IF NOT EXISTS "doc"."weather_flink_sink" (
"inserted_at" TIMESTAMP WITHOUT TIME ZONE NOT NULL GENERATED ALWAYS AS now(),
"location" OBJECT(DYNAMIC),
"current" OBJECT(DYNAMIC)
);
application/apache-kafka-flink-streaming
The create table in the code is not correct, as Flink is ingesting Location and Condition and not inserted_at.
So either the create table should be changed to:
Or like we change inserted_at into a generated column.