[ https://issues.apache.org/jira/browse/FLINK-19746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
appleyuchi updated FLINK-19746: ------------------------------- Description: I know the solution for my following question,so I'm not asking for support to debug [this code|https://paste.ubuntu.com/p/Mw5tJSmDCs/] when I use the function "as("x","y","z")." in my code, two available *preparation code* for "create table": ||relevant code||running log||Deprecated?|| |tEnv.registerDataStream("Orders", orderA,"user,product,amount");|ok|YES| |tEnv.createTemporaryView("Orders", orderA,$("user,product,amount"));|user,product,amount is not a field of type PojoType<Order, fields = [amount: Integer, product: String, user: Long]>. Expected: amount, product, user}|NO| Question: why the support for "as" is deleted when the *newest officially recommended createTemporaryView* is used? was: I know the solution for my following question,so I'm not asking for support to debug [this code|https://paste.ubuntu.com/p/Mw5tJSmDCs/] when I use the function "as("x","y","z")." in my code, two available solutions for "create table": ||relevant code||running log||Deprecated?|| |tEnv.registerDataStream("Orders", orderA,"user,product,amount");|ok|YES| |tEnv.createTemporaryView("Orders", orderA,$("user,product,amount"));|user,product,amount is not a field of type PojoType<Order, fields = [amount: Integer, product: String, user: Long]>. Expected: amount, product, user}|NO| Question: why the support for "as" is deleted when the *newest officially recommended createTemporaryView* is used? > Why delete support for "as" function > ------------------------------------ > > Key: FLINK-19746 > URL: https://issues.apache.org/jira/browse/FLINK-19746 > Project: Flink > Issue Type: Bug > Affects Versions: 1.11.0 > Reporter: appleyuchi > Priority: Major > > I know the solution for my following question,so I'm not asking for support > to debug [this code|https://paste.ubuntu.com/p/Mw5tJSmDCs/] > when I use the function "as("x","y","z")." in my code, > two available *preparation code* for "create table": > ||relevant code||running log||Deprecated?|| > |tEnv.registerDataStream("Orders", orderA,"user,product,amount");|ok|YES| > |tEnv.createTemporaryView("Orders", > orderA,$("user,product,amount"));|user,product,amount is not a field of type > PojoType<Order, fields = [amount: Integer, product: String, user: Long]>. > Expected: amount, product, user}|NO| > Question: > why the support for "as" is deleted when the *newest officially recommended > createTemporaryView* is used? -- This message was sent by Atlassian Jira (v8.3.4#803005)