szehon-ho commented on code in PR #51107:
URL: https://github.com/apache/spark/pull/51107#discussion_r2153267832
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/interface.scala:
##########
@@ -629,9 +629,15 @@ case class CatalogTable(
if (lastAccessTime <= 0) JString("UNKNOWN")
else JLong(lastAccessTime)
- val viewQueryOutputColumns: JValue =
- if (viewQueryColumnNames.nonEmpty)
JArray(viewQueryColumnNames.map(JString).toList)
- else JNull
+ val viewQueryOutputColumns: JValue = {
+ if (viewSchemaMode == SchemaEvolution) {
+ JArray(schema.map(_.name).map(JString).toList)
Review Comment:
synced offline, this is because viewQueryColumnNames is from the table
properties.
This part of code is used in DESCRIBE
--
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]