Skip to content

Commit 95c2d2f

Browse files
committed
add logWarning for duplicated columns
1 parent 06819dd commit 95c2d2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/command/AnalyzeColumnCommand.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ case class AnalyzeColumnCommand(
8484
// do deduplication
8585
if (!attributesToAnalyze.contains(expr)) {
8686
attributesToAnalyze += expr
87+
} else {
88+
logWarning(s"Duplicated column: $col")
8789
}
8890
}
8991

0 commit comments

Comments
 (0)