xy2953396112 commented on a change in pull request #24596: [SPARK-27694][SQL] 
CTAS created data source table support collect statistics
URL: https://github.com/apache/spark/pull/24596#discussion_r284614068
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/createDataSourceTables.scala
 ##########
 @@ -193,6 +193,8 @@ case class CreateDataSourceTableAsSelectCommand(
       }
     }
 
+    CommandUtils.updateTableStats(sparkSession, table)
 
 Review comment:
   It looks like a specific requirement.Maybe it should use 'ANALYZE TABLE 
<tablename> COMPUTE STATISTICS'.

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

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

Reply via email to