karuppayya commented on a change in pull request #28686:
URL: https://github.com/apache/spark/pull/28686#discussion_r434819723



##########
File path: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionStateBuilder.scala
##########
@@ -82,8 +82,8 @@ class HiveSessionStateBuilder(session: SparkSession, 
parentState: Option[Session
 
     override val postHocResolutionRules: Seq[Rule[LogicalPlan]] =
       new DetectAmbiguousSelfJoin(conf) +:
-        new DetermineTableStats(session) +:
         RelationConversions(conf, catalog) +:
+        new DetermineTableStats(session) +:

Review comment:
       @viirya Hive tables are converted To `HiveTableScanExec` instead of 
`Logical Relation`(which inturn uses HadoopFSRelation) . This happens in 
`org.apache.spark.sql.hive.HiveStrategies.HiveTableScans` . It will not affect 
HadoopFSRelation I think. Let me know if I am missing some thing
   Note: conversion to HiveTableScanExec happen for Hive table with any formats 
other than Parquet and Orc.
   In case or Orc and Parquet, it happens when the flag to convert to 
datasource table is disabled.
   




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