lirui-apache commented on issue #8859: [FLINK-12905][table-planner] Enable 
querying CatalogViews in legacy planner
URL: https://github.com/apache/flink/pull/8859#issuecomment-505697061
 
 
   For Hive to access (non-generic) views created by Flink, we need to 1) 
remove the catalog part from the object paths and 2) make sure the expanded 
query is valid HiveQL syntax.
   To achieve the above in Blink, we used Hive's analyzer to analyze the 
original query in order to get a Hive-compatible expanded query. Blink's 
expanded query is stored as a property of the view, and will be restored if the 
view is accessed from Blink side.
   
   If we're to do the same in Flink, I guess it can be done in a separate PR. 
And the prerequisite is that `CatalogView` preserves the original query when it 
reaches `HiveCatalog::createTable`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to