File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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}) {
You can’t perform that action at this time.
0 commit comments