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.