You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jark Wu (Jira)" <ji...@apache.org> on 2021/10/12 06:33:00 UTC
[jira] [Closed] (FLINK-23549) Kafka table connector create table
example in docs has syntax error
[ https://issues.apache.org/jira/browse/FLINK-23549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jark Wu closed FLINK-23549.
---------------------------
Resolution: Fixed
Fixed in master: e0be71c831e70b3aa5faf56cba06ab8d41bf452a
> Kafka table connector create table example in docs has syntax error
> -------------------------------------------------------------------
>
> Key: FLINK-23549
> URL: https://issues.apache.org/jira/browse/FLINK-23549
> Project: Flink
> Issue Type: Improvement
> Components: Connectors / Kafka, Documentation
> Affects Versions: 1.13.1
> Reporter: Mans Singh
> Assignee: Mans Singh
> Priority: Minor
> Labels: connector, doc, example, kafka, pull-request-available, stale-assigned, syntax, table
> Fix For: 1.15.0
>
> Original Estimate: 0.25h
> Remaining Estimate: 0.25h
>
> The create table example in the docs has an syntax error (extra comma after the opening bracket):
> {quote}CREATE TABLE KafkaTable (,
> `ts` TIMESTAMP(3) METADATA FROM 'timestamp',
> `user_id` BIGINT,
> `item_id` BIGINT,
> `behavior` STRING
> ) WITH (
> 'connector' = 'kafka',
> ...
> )
> {quote}
> On executing in the FlinkSQL it produces an error:
> {quote}[ERROR] Could not execute SQL statement. Reason:
> org.apache.flink.sql.parser.impl.ParseException: Encountered "," at line 1, column 26.
> {quote}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)