Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/14746#discussion_r76641736
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/command/views.scala ---
@@ -69,23 +66,17 @@ case class CreateViewCommand(
override def output: Seq[Attribute] = Seq.empty[Attribute]
- if (!isTemporary) {
--- End diff --
`originalText` is empty only when the view is created through Dataset APIs,
as shown in the [code comment
](https://github.com/gatorsmile/spark/blob/5606344584c1c45cf49d2a95158c55193e777a9e/sql/core/src/main/scala/org/apache/spark/sql/execution/command/views.scala#L40-L41)
This checking looks useless. If you think we should keep it, I can add it
back. Thanks!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]