Re: Table name for table created fromDataStream
Posted by
Leonard Xu on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Table-name-for-table-created-fromDataStream-tp43535p43572.html
Hi Leonard,
Yes that would be one solution. But why is it necessary to create a
temporaryView from already created table ?
The name “Table” is quite misleading here, the table API object Table actually represents a relational query (e.g. Table table = myTableObject.join(…).where(…).select(…)).
Thus we use createTemporaryView(String path, Table view) rather than registerTable(String name, Table table)
Given a background that registerTable(String name, Table table) is old interface and has been deprecated because the reason I explained. This is a part of FLIP-64[1]
Hope I make this clear.
Best,
Leonard