Skip to content

Commit

Permalink
spark agent #272 code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cerveada committed Aug 12, 2021
1 parent c63af99 commit 9472d8f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class JoinNodeBuilder

override def build(): DataOperation = {

val duplicates = operation.output.groupBy(_.exprId).collect { case (x, List(_,_,_*)) => x }
val duplicates = operation.output.groupBy(_.exprId).collect { case (exprId, attrs) if attrs.length > 1 => exprId }
if (duplicates.nonEmpty) {
logError(s"Duplicated attributes found in Join operation output, ExprIds of duplicates: $duplicates")
logWarning(s"Duplicated attributes found in Join operation output, ExprIds of duplicates: $duplicates")
}

super.build()
Expand Down

0 comments on commit 9472d8f

Please sign in to comment.