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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Shang Yuanchun (Jira)
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)