yuemeng created FLINK-9329:
------------------------------
Summary: hasRowtimeAttribute will throw NPE if user use setProctimeAttribute for table source
Key: FLINK-9329
URL:
https://issues.apache.org/jira/browse/FLINK-9329 Project: Flink
Issue Type: Bug
Components: Table API & SQL
Reporter: yuemeng
Assignee: yuemeng
{{{code}}}
{{KafkaTableSource source = Kafka010JsonTableSource.builder() // ... .withSchema(TableSchema.builder() .field("sensorId", Types.LONG()) .field("temp", Types.DOUBLE()) // field "ptime" is of type SQL_TIMESTAMP .field("ptime", Types.SQL_TIMESTAMP()).build()) // declare "ptime" as processing time attribute .withProctimeAttribute("ptime") .build();}}
tableEnv.registerTableSource("flights", kafkaTableSource);
{{{code}}}
{{ }}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)