dengzhhu653 commented on pull request #1702:
URL: https://github.com/apache/hive/pull/1702#issuecomment-733425360


   Seems I am wrong. In the trunk,  the query
   `with game_info as (
   select distinct ext_id, dev_app_id, game_name
   from game_info_extend )
   select count(game_name) from game_info;` ,  the game_info is firstly 
materialized, this can reduce recomputing of game_info no matter how many times 
the game_info is referenced later on.
   The condition `if (tab == null ||
             tab.getDbName().equals(SessionState.get().getCurrentDatabase())) ` 
in getMetaData will pass as the latter predicate turns out to be true, so the 
materialized view is taken other than the table `game_info` for latter use. 
@jcamachor, Am I right? 
    Thanks in advance.
   


----------------------------------------------------------------
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to