Skip to content

Commit

Permalink
[SPARK-4639] [SQL] Pass maxIterations in as a parameter in Analyzer
Browse files Browse the repository at this point in the history
fix a TODO in Analyzer:
// TODO: pass this in as a parameter
val fixedPoint = FixedPoint(100)

Author: Jacky Li <[email protected]>

Closes apache#3499 from jackylk/config and squashes the following commits:

4c1252c [Jacky Li] fix scalastyle
820f460 [Jacky Li] pass maxIterations in as a parameter
  • Loading branch information
jackylk authored and marmbrus committed Dec 12, 2014
1 parent a7f07f5 commit c152dde
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ object SimpleAnalyzer extends Analyzer(EmptyCatalog, EmptyFunctionRegistry, true
* [[UnresolvedRelation]]s into fully typed objects using information in a schema [[Catalog]] and
* a [[FunctionRegistry]].
*/
class Analyzer(catalog: Catalog, registry: FunctionRegistry, caseSensitive: Boolean)
class Analyzer(catalog: Catalog,
registry: FunctionRegistry,
caseSensitive: Boolean,
maxIterations: Int = 100)
extends RuleExecutor[LogicalPlan] with HiveTypeCoercion {

val resolver = if (caseSensitive) caseSensitiveResolution else caseInsensitiveResolution

// TODO: pass this in as a parameter.
val fixedPoint = FixedPoint(100)
val fixedPoint = FixedPoint(maxIterations)

/**
* Override to provide additional rules for the "Resolution" batch.
Expand Down

0 comments on commit c152dde

Please sign in to comment.