rednaxelafx opened a new pull request #23582: [SPARK-26661][SQL] Show actual 
class name of the writing command in CTAS explain
URL: https://github.com/apache/spark/pull/23582
 
 
   ## What changes were proposed in this pull request?
   
   The explain output of the Hive CTAS command, regardless of whether it's 
actually writing via Hive's SerDe or converted into using Spark's data source, 
would always show that it's using `InsertIntoHiveTable` because it's hardcoded.
   
   e.g.
   ```
   Execute OptimizedCreateHiveTableAsSelectCommand [Database:default, 
TableName: foo, InsertIntoHiveTable]
   ```
   This CTAS is converted into using Spark's data source, but it still says 
`InsertIntoHiveTable` in the explain output.
   
   It's better to show the actual class name of the writing command used. For 
the example above, it'd be:
   ```
   Execute OptimizedCreateHiveTableAsSelectCommand [Database:default, 
TableName: foo, InsertIntoHadoopFsRelationCommand]
   ```
   
   ## How was this patch tested?
   
   Added test case in `HiveExplainSuite`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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