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



在 2021年5月8日,08:00,tbud <[hidden email]> 写道:

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
[1] https://cwiki.apache.org/confluence/display/FLINK/FLIP-64%3A+Support+for+Temporary+Objects+in+Table+module