Skip to content

Commit

Permalink
Fixed attribute resolution logic in Analyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
sarutak committed Nov 21, 2014
1 parent 6e60c20 commit fd314f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ class Analyzer(catalog: Catalog, registry: FunctionRegistry, caseSensitive: Bool
val missingInProject = requiredAttributes -- p.output
if (missingInProject.nonEmpty) {
// Add missing attributes and then project them away after the sort.
Project(projectList,
Project(projectList.map(_.toAttribute),
Sort(ordering,
Project(projectList ++ missingInProject ++ child.inputSet, child)))
Project(projectList ++ missingInProject, child)))
} else {
logDebug(s"Failed to find $missingInProject in ${p.output.mkString(", ")}")
s // Nothing we can do here. Return original plan.
Expand Down

0 comments on commit fd314f3

Please sign in to comment.