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

    https://github.com/apache/spark/pull/12036#discussion_r57793017
  
    --- Diff: 
sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/HiveSqlParser.scala 
---
    @@ -21,27 +21,28 @@ import scala.collection.JavaConverters._
     import org.antlr.v4.runtime.{ParserRuleContext, Token}
     import org.apache.hadoop.hive.conf.HiveConf
     import org.apache.hadoop.hive.conf.HiveConf.ConfVars
    -import org.apache.hadoop.hive.ql.exec.FunctionRegistry
    +import org.apache.hadoop.hive.ql.exec.{FunctionRegistry => 
HiveFunctionRegistry}
     import org.apache.hadoop.hive.ql.parse.EximUtil
     import org.apache.hadoop.hive.ql.session.SessionState
     import org.apache.hadoop.hive.serde.serdeConstants
     import org.apache.hadoop.hive.serde2.`lazy`.LazySimpleSerDe
     
    +import org.apache.spark.sql.catalyst.analysis.FunctionRegistry
     import org.apache.spark.sql.catalyst.catalog.{CatalogColumn, 
CatalogStorageFormat, CatalogTable, CatalogTableType}
     import org.apache.spark.sql.catalyst.expressions._
     import org.apache.spark.sql.catalyst.parser.ng._
     import org.apache.spark.sql.catalyst.parser.ng.SqlBaseParser._
     import org.apache.spark.sql.catalyst.plans.logical.LogicalPlan
     import org.apache.spark.sql.execution.SparkSqlAstBuilder
    -import org.apache.spark.sql.hive.{CreateTableAsSelect => CTAS, 
CreateViewAsSelect => CreateView}
    +import org.apache.spark.sql.hive.{CreateTableAsSelect => CTAS, 
CreateViewAsSelect => CreateView, HiveSessionState}
     import org.apache.spark.sql.hive.{HiveGenericUDTF, HiveSerDe}
     import org.apache.spark.sql.hive.HiveShim.HiveFunctionWrapper
     
     /**
      * Concrete parser for HiveQl statements.
      */
    -object HiveSqlParser extends AbstractSqlParser {
    -  val astBuilder = new HiveSqlAstBuilder
    +case class HiveSqlParser(sessionState: HiveSessionState) extends 
AbstractSqlParser {
    --- End diff --
    
    I would just make it a real class instead of a case class


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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to