You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the definition on the source/table with conn will not take effect
createtablet (
x int,
y int default 1,
z timestamptz default now(),
) with (
connector ='kafka',
topic ='t',
properties.bootstrap.server ='localhost:29092',
scan.startup.mode ='earliest'
) FORMAT PLAIN ENCODE JSON;
when insert {"x":"1"} to the topic, it will be resolved as
dev=> select * from mv;
x | y | z
---+---+---
1 | |
(1 row)
using create source will get the same result.
The text was updated successfully, but these errors were encountered:
To clarify, does it only apply to json / csv where columns are listed in SQL?
For protobuf and avro, columns are derived and each encoding has their own specification about default values: protobufavro
Good point. I think for protobuf or avro, we need to give user an error to tell them the default value declared in the create statement does not take effect.
Currently, the definition on the source/table with conn will not take effect
when insert
{"x":"1"}
to the topic, it will be resolved asusing
create source
will get the same result.The text was updated successfully, but these errors were encountered: