Skip to content

Commit cfe2e3d

Browse files
committed
revert a change of an exception message
1 parent c986361 commit cfe2e3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/complexTypeCreator.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private [sql] object GenArrayData {
9999
val isNullAssignment = if (!isMapKey) {
100100
s"$arrayName[$i] = null;"
101101
} else {
102-
"throw new RuntimeException(\"Cannot use null!\");"
102+
"throw new RuntimeException(\"Cannot use null as map key!\");"
103103
}
104104
eval.code + s"""
105105
if (${eval.isNull}) {
@@ -126,7 +126,7 @@ private [sql] object GenArrayData {
126126
val isNullAssignment = if (!isMapKey) {
127127
s"$arrayDataName.setNullAt($i);"
128128
} else {
129-
"throw new RuntimeException(\"Cannot use null!\");"
129+
"throw new RuntimeException(\"Cannot use null as map key!\");"
130130
}
131131
eval.code + s"""
132132
if (${eval.isNull}) {

0 commit comments

Comments
 (0)