Github user rxin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12633#discussion_r60832575
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/views.scala ---
    @@ -85,68 +88,74 @@ case class CreateViewCommand(
         } else {
           // Create the view if it doesn't exist.
           sessionState.catalog.createTable(
    -        prepareTable(sqlContext, analzyedPlan), ignoreIfExists = false)
    +        prepareTable(sqlContext, analyzedPlan), ignoreIfExists = false)
         }
     
         Seq.empty[Row]
       }
     
    -  private def prepareTable(sqlContext: SQLContext, analzyedPlan: 
LogicalPlan): CatalogTable = {
    -    val expandedText = if (sqlContext.conf.canonicalView) {
    -      try rebuildViewQueryString(sqlContext, analzyedPlan) catch {
    --- End diff --
    
    cc @liancheng @yhuai 
    
    I don't think we should ever catch an exception and silently fallback to 
some other codepath. Let's make sure we don't do that in the future ...



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

Reply via email to