cloud-fan commented on a change in pull request #35936:
URL: https://github.com/apache/spark/pull/35936#discussion_r835337969



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala
##########
@@ -873,9 +874,20 @@ class SessionCatalog(
       throw new IllegalStateException("Invalid view without text.")
     }
     val viewConfigs = metadata.viewSQLConfigs
+    val origin = Origin(
+      line = Some(0),
+      startPosition = Some(0),
+      startIndex = Some(0),
+      stopIndex = Some(viewText.length - 1),
+      sqlText = Some(viewText),
+      objectType = Some("VIEW"),
+      objectName = Some(metadata.qualifiedName)

Review comment:
       I think we only need to set `objectType` and `objectName` here? The 
parser should take care of the other fields.




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