Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-7566

HiveContext.analyzer cannot be overriden

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.1
    • 1.3.2, 1.4.0
    • SQL
    • None

    Description

      Trying to override HiveContext.analyzer will give the following compilation error:

      Error:(51, 36) overriding lazy value analyzer in class HiveContext of type org.apache.spark.sql.catalyst.analysis.Analyzer{val extendedResolutionRules: List[org.apache.spark.sql.catalyst.rules.Rule[org.apache.spark.sql.catalyst.plans.logical.LogicalPlan]]};
       lazy value analyzer has incompatible type
        override protected[sql] lazy val analyzer: Analyzer = {
                                         ^
      

      That is because the type changed inadvertedly when omitting the type declaration of the return type.

      Attachments

        Activity

          People

            smolav Santiago M. Mola
            smolav Santiago M. Mola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: