You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "xuhaiLong (Jira)" <ji...@apache.org> on 2021/03/25 10:08:00 UTC

[jira] [Created] (FLINK-21973) Flink 1.12 has a column bug in creating views

xuhaiLong created FLINK-21973:
---------------------------------

             Summary: Flink 1.12 has a column bug in creating views
                 Key: FLINK-21973
                 URL: https://issues.apache.org/jira/browse/FLINK-21973
             Project: Flink
          Issue Type: Bug
            Reporter: xuhaiLong


When I create view with the same column name, it use the positional mapping,is this a bug?

val viewTable =
 """
 |CREATE VIEW ViewTest(
 | `userId`,
 | `item_id`,
 | `behavior`,
 | `item_name`,
 | `event_time`, `ptm`
 |) AS select user_id as userId, item_id, behavior, ptm, item_name, event_time from KafkaTable
 |""".stripMargin

 

ptm -> item_name



--
This message was sent by Atlassian Jira
(v8.3.4#803005)