You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by hvanhovell <gi...@git.apache.org> on 2016/05/03 20:45:45 UTC

[GitHub] spark pull request: [SPARK-6339][SQL][WIP] Supports create CREATE ...

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

    https://github.com/apache/spark/pull/12872#discussion_r61952907
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/command/views.scala ---
    @@ -55,13 +60,18 @@ case class CreateViewCommand(
       require(tableDesc.tableType == CatalogTableType.VIEW)
       require(tableDesc.viewText.isDefined)
     
    -  private val tableIdentifier = tableDesc.identifier
    -
       if (allowExisting && replace) {
         throw new AnalysisException(
           "It is not allowed to define a view with both IF NOT EXISTS and OR REPLACE.")
       }
     
    +  // Temporary view names should NOT contain database prefix like "database.table"
    +  if (isTemporary && tableDesc.identifier.database.isDefined) {
    +    val database = tableDesc.identifier.database.get
    +    throw new AnalysisException(
    --- End diff --
    
    Where does this semantic rule come from? Hive?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org