Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22758#discussion_r226198591
  
    --- Diff: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala ---
    @@ -193,6 +193,16 @@ private[hive] class HiveMetastoreCatalog(sparkSession: 
SparkSession) extends Log
               None)
             val logicalRelation = cached.getOrElse {
               val updatedTable = inferIfNeeded(relation, options, fileFormat)
    +          // Intialize the catalogTable stats if its not defined.An intial 
value has to be defined
    --- End diff --
    
    > but after create table command, when we do insert command within the same 
session Hive statistics is not getting updated
    
    This is the thing I don't understand. Like I said before, even if table has 
no stats, Spark will still get a stats via the `DetermineTableStats` rule.


---

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

Reply via email to