Yikf commented on code in PR #40437:
URL: https://github.com/apache/spark/pull/40437#discussion_r1169601459
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/HiveResult.scala:
##########
@@ -50,27 +50,14 @@ object HiveResult {
}
/**
- * Returns the result as a hive compatible sequence of strings. This is used
in tests and
- * `SparkSQLDriver` for CLI applications.
+ * Returns the result as a hive compatible sequence of strings. This is used
in tests.
*/
def hiveResultString(executedPlan: SparkPlan): Seq[String] =
stripRootCommandResult(executedPlan) match {
case ExecutedCommandExec(_: DescribeCommandBase) =>
formatDescribeTableOutput(executedPlan.executeCollectPublic())
case _: DescribeTableExec =>
formatDescribeTableOutput(executedPlan.executeCollectPublic())
- // SHOW TABLES in Hive only output table names while our v1 command
outputs
Review Comment:
I think that it's necessary since the content schema and values of the
golden files involving these commands are also consistent.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]