用 sql-client create 了一个 kafka table:
CREATE TABLE order_status (
      out_order_code VARCHAR,
      intput_date TIMESTAMP(3),
      owner_code VARCHAR,
      status INT
  ) WITH (
      'connector.type' = 'kafka',.........
      'format.type' = 'json',      'format.derive-schema' = 'true'   )
然后往 kafka 这个 topic 
发送消息:{"out_order_code":"MAMICK2020031048","input_date":"2020-03-11T13:00:00.123Z","owner_code":"WDTLEN04","status":90}
input_date 在 sql-clinet 端始终是 NULL. 
我把 发送的 input_date 改成 1583828700240  "2020-03-11 13:00:00"  "2020-03-11 
13:00:00.000" 也都不行。 
这个 TIMESTAMP(3)在JSON 中应该写成什么样子呢?

谢谢,
王磊



wangl...@geekplus.com.cn

Reply via email to