Skip to content

Commit

Permalink
[SQL] Handle null values in debug()
Browse files Browse the repository at this point in the history
Author: Michael Armbrust <michael@databricks.com>

Closes apache#1646 from marmbrus/nullDebug and squashes the following commits:

49050a8 [Michael Armbrust] Handle null values in debug()
  • Loading branch information
marmbrus committed Jul 30, 2014
1 parent 2e6efca commit 077f633
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ package object debug {
var i = 0
while (i < numColumns) {
val value = currentRow(i)
columnStats(i).elementTypes += HashSet(value.getClass.getName)
if (value != null) {
columnStats(i).elementTypes += HashSet(value.getClass.getName)
}
i += 1
}
currentRow
Expand Down

0 comments on commit 077f633

Please sign in to comment.