mihailoale-db commented on code in PR #60169:
URL: https://github.com/apache/spark/pull/60169#discussion_r4491591736


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/KeepLegacyOutputs.scala:
##########
@@ -33,9 +34,7 @@ object KeepLegacyOutputs extends Rule[LogicalPlan] {
       plan.resolveOperatorsUpWithPruning(
         _.containsPattern(COMMAND)) {
         case s: ShowTables =>
-          assert(s.output.length == 3)
-          val newOutput = s.output.head.withName("database") +: s.output.tail
-          s.copy(output = newOutput)
+          keepLegacyShowTablesOutput(s)

Review Comment:
   This is a functional change. Shouldn't this be a refactor only change.



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

Reply via email to