Skip to content
Snippets Groups Projects
Commit 5a826c00 authored by Michael Armbrust's avatar Michael Armbrust
Browse files

[SQL] Fix logging warn -> debug

Author: Michael Armbrust <michael@databricks.com>

Closes #1800 from marmbrus/warning and squashes the following commits:

8ea9cf1 [Michael Armbrust] [SQL] Fix logging warn -> debug.
parent b70bae40
No related branches found
No related tags found
No related merge requests found
...@@ -151,10 +151,10 @@ class Analyzer(catalog: Catalog, registry: FunctionRegistry, caseSensitive: Bool ...@@ -151,10 +151,10 @@ class Analyzer(catalog: Catalog, registry: FunctionRegistry, caseSensitive: Bool
grouping.collect { case ne: NamedExpression => ne.toAttribute } grouping.collect { case ne: NamedExpression => ne.toAttribute }
) )
logWarning(s"Grouping expressions: $groupingRelation") logDebug(s"Grouping expressions: $groupingRelation")
val resolved = unresolved.flatMap(groupingRelation.resolve).toSet val resolved = unresolved.flatMap(groupingRelation.resolve).toSet
val missingInAggs = resolved -- a.outputSet val missingInAggs = resolved -- a.outputSet
logWarning(s"Resolved: $resolved Missing in aggs: $missingInAggs") logDebug(s"Resolved: $resolved Missing in aggs: $missingInAggs")
if (missingInAggs.nonEmpty) { if (missingInAggs.nonEmpty) {
// Add missing grouping exprs and then project them away after the sort. // Add missing grouping exprs and then project them away after the sort.
Project(a.output, Project(a.output,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment