You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "yuemeng (JIRA)" <ji...@apache.org> on 2018/05/10 09:42:00 UTC

[jira] [Created] (FLINK-9329) hasRowtimeAttribute will throw NPE if user use setProctimeAttribute for table source

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 &amp; 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)