flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yuqi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-9329) hasRowtimeAttribute will throw NPE if user use setProctimeAttribute for table source
Date Thu, 10 May 2018 09:45:00 GMT

    [ https://issues.apache.org/jira/browse/FLINK-9329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16470152#comment-16470152
] 

yuqi commented on FLINK-9329:
-----------------------------

More description are wanted [~yuemeng]

> 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
>            Priority: Critical
>
> {{{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)

Mime
View raw message