My table looks like this ```CREATE TABLE source ( ...
# troubleshooting
s
My table looks like this
Copy code
CREATE TABLE source (
    `updated_at` timestamp(3),
    `updated_at_1` timestamp(3),
    `updated_at_2` timestamp(3),
    `deleted_at` timestamp(3),
     ...
) WITH (
    'connector' = 'kafka',
    'topic' = 'mytopic'
    ...
);
I want to calculate max among
updated_at
,
updated_at_1
and
updated_at_2
for each event/kafka message
I tried a few things such as expanding columns into row and then computing max using
union all
, comparison operator
>=
etc., but feel like UDFs are probably the cleanest solution