Skip to content

Commit

Permalink
#771 Wrapped toString in null check.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjstevo committed Jun 19, 2023
1 parent d1f32b1 commit 4a81246
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ class DistinctAggregation(val column: Column) extends NodeAggregation {
CollectionHasAsScala(values).asScala.mkString(",")
}
override def processLeaf(row: RowData): Unit = {
val colData = column.getData(row).toString
if(colData != null && !values.contains(colData)){
values.add(colData)
val colData = column.getData(row)
if(colData != null && !values.contains(colData.toString)){
values.add(colData.toString)
}
}
}
Expand Down

0 comments on commit 4a81246

Please sign in to comment.