Skip to content

Commit a5f9e3b

Browse files
Remove the duplicated SparkSQLParser
1 parent 14502d5 commit a5f9e3b

File tree

1 file changed

+2
-5
lines changed
  • sql/hive/src/main/scala/org/apache/spark/sql/hive

1 file changed

+2
-5
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveQl.scala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import org.apache.hadoop.hive.ql.lib.Node
2828
import org.apache.hadoop.hive.ql.metadata.Table
2929
import org.apache.hadoop.hive.ql.parse._
3030
import org.apache.hadoop.hive.ql.plan.PlanUtils
31-
import org.apache.spark.sql.{AnalysisException, SparkSQLParser}
31+
import org.apache.spark.sql.AnalysisException
3232

3333
import org.apache.spark.sql.catalyst.analysis._
3434
import org.apache.spark.sql.catalyst.expressions._
@@ -140,10 +140,7 @@ private[hive] object HiveQl {
140140
"TOK_TRUNCATETABLE" // truncate table" is a NativeCommand, does not need to explain.
141141
) ++ nativeCommands
142142

143-
protected val hqlParser = {
144-
val fallback = new ExtendedHiveQlParser
145-
new SparkSQLParser(fallback.parse(_))
146-
}
143+
protected val hqlParser = new ExtendedHiveQlParser
147144

148145
/**
149146
* A set of implicit transformations that allow Hive ASTNodes to be rewritten by transformations

0 commit comments

Comments
 (0)