|
18 | 18 | package org.apache.spark.sql.hive |
19 | 19 |
|
20 | 20 | import org.apache.spark.annotation.Experimental |
21 | | -import org.apache.spark.sql._ |
22 | 21 | import org.apache.spark.sql.catalyst.analysis.UnresolvedAttribute |
23 | 22 | import org.apache.spark.sql.catalyst.expressions._ |
24 | 23 | import org.apache.spark.sql.catalyst.expressions.codegen.GeneratePredicate |
25 | 24 | import org.apache.spark.sql.catalyst.planning._ |
26 | 25 | import org.apache.spark.sql.catalyst.plans._ |
27 | 26 | import org.apache.spark.sql.catalyst.plans.logical.{LogicalPlan, LowerCaseSchema} |
28 | | -import org.apache.spark.sql.execution._ |
29 | | -import org.apache.spark.sql.hive.execution._ |
| 27 | +import org.apache.spark.sql.catalyst.types.StringType |
30 | 28 | import org.apache.spark.sql.columnar.InMemoryRelation |
31 | | -import org.apache.spark.sql.parquet.{ParquetRelation, ParquetTableScan} |
| 29 | +import org.apache.spark.sql.execution.{DescribeCommand, OutputFaker, SparkPlan} |
| 30 | +import org.apache.spark.sql.hive |
| 31 | +import org.apache.spark.sql.hive.execution._ |
| 32 | +import org.apache.spark.sql.parquet.ParquetRelation |
| 33 | +import org.apache.spark.sql.{SQLContext, SchemaRDD} |
32 | 34 |
|
33 | 35 | import scala.collection.JavaConversions._ |
34 | 36 |
|
@@ -196,9 +198,9 @@ private[hive] trait HiveStrategies { |
196 | 198 | case logical.NativeCommand(sql) => |
197 | 199 | NativeCommand(sql, plan.output)(context) :: Nil |
198 | 200 |
|
199 | | - case DropTable(tableName, ifExists) => execution.DropTable(tableName, ifExists) :: Nil |
| 201 | + case hive.DropTable(tableName, ifExists) => execution.DropTable(tableName, ifExists) :: Nil |
200 | 202 |
|
201 | | - case AnalyzeTable(tableName) => execution.AnalyzeTable(tableName) :: Nil |
| 203 | + case hive.AnalyzeTable(tableName) => execution.AnalyzeTable(tableName) :: Nil |
202 | 204 |
|
203 | 205 | case describe: logical.DescribeCommand => |
204 | 206 | val resolvedTable = context.executePlan(describe.table).analyzed |
|
0 commit comments