Skip to content

Commit

Permalink
style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
scwf committed Feb 4, 2015
1 parent fcfa126 commit 057d23e
Showing 1 changed file with 8 additions and 6 deletions.
Expand Up @@ -17,8 +17,6 @@

package org.apache.spark.sql.hive

import org.apache.spark.sql.catalyst.expressions.Row

import scala.collection.JavaConversions._

import org.apache.spark.annotation.Experimental
Expand Down Expand Up @@ -212,18 +210,22 @@ private[hive] trait HiveStrategies {

object HiveDDLStrategy extends Strategy {
def apply(plan: LogicalPlan): Seq[SparkPlan] = plan match {
case CreateTableUsing(tableIdentifier, userSpecifiedSchema, provider, false, opts, allowExisting) =>
case CreateTableUsing(
tableIdentifier, userSpecifiedSchema, provider, false, opts, allowExisting) =>
ExecutedCommand(
CreateMetastoreDataSource(
tableIdentifier, userSpecifiedSchema, provider, opts, allowExisting)) :: Nil

case CreateTableUsingAsSelect(tableIdentifier, provider, false, opts, allowExisting, query) =>
case CreateTableUsingAsSelect(
tableIdentifier, provider, false, opts, allowExisting, query) =>
val logicalPlan = hiveContext.parseSql(query)
val cmd =
CreateMetastoreDataSourceAsSelect(tableIdentifier, provider, opts, allowExisting, logicalPlan)
CreateMetastoreDataSourceAsSelect(
tableIdentifier, provider, opts, allowExisting, logicalPlan)
ExecutedCommand(cmd) :: Nil

case CreateTableUsingAsLogicalPlan(tableIdentifier, provider, false, opts, allowExisting, query) =>
case CreateTableUsingAsLogicalPlan(
tableIdentifier, provider, false, opts, allowExisting, query) =>
val cmd =
CreateMetastoreDataSourceAsSelect(tableIdentifier, provider, opts, allowExisting, query)
ExecutedCommand(cmd) :: Nil
Expand Down

0 comments on commit 057d23e

Please sign in to comment.