karuppayya opened a new pull request #28686:
URL: https://github.com/apache/spark/pull/28686


   
   
   ### What changes were proposed in this pull request?
   As part of **DetermineTableStats** rule, we compute the stats for a 
HiveTableRelation.
   
   In most cases(the flag for converting Parquet and Orc table is enabled by 
default in master branch), RelationConversion rule converts the 
HiveTableRelation to LogicalRelation.
   When the conversion happens, the stats computed as part of Hive Table 
relation does not get used.
   
   In this change,  stats compute is avoided by performing the conversion 
before computing stats.
   
   ### Why are the changes needed?
   With the change, stats for Hive table will not be computed unnecessarily.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   It was tested on local machine and  behaviour verified.
   


----------------------------------------------------------------
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to