spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clockfly <>
Subject [GitHub] spark pull request: [SPARK-6339][SQL][WIP] Supports create CREATE ...
Date Wed, 04 May 2016 03:05:10 GMT
Github user clockfly commented on a diff in the pull request:
    --- 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)
    -  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 --
    This is to be consistent with DataSet API. When registering a temp table, it will remove
the database prefix, here is the code:

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message