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

HiveContext.analyzer cannot be overriden

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.3.2, 1.4.0
    • Component/s: SQL
    • Labels:
      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

            • Assignee:
              smolav Santiago M. Mola
              Reporter:
              smolav Santiago M. Mola
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: