dongjoon-hyun commented on a change in 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#discussion_r249238262
 
 

 ##########
 File path: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/CreateHiveTableAsSelectCommand.scala
 ##########
 @@ -83,10 +84,14 @@ trait CreateHiveTableAsSelectBase extends 
DataWritingCommand {
     tableDesc: CatalogTable,
     tableExists: Boolean): DataWritingCommand
 
+  // A subclass should override this with the Class of the concrete type 
expected to be
+  // returned from `getWritingCommand`.
+  def writingCommandClass: Class[_]
 
 Review comment:
   @rednaxelafx . Do we need to return the class itself? Can we simply return 
`String` instead of `Class[_]` because we require only `name` and don't use the 
class actually.
   ```scala
   - def writingCommandClass: Class[_]
   + def writingCommandClassName: String
   ```

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