Skip to content

Commit d0408a1

Browse files
committed
fix python
1 parent 661e608 commit d0408a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/pythonUDFs.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,13 @@ object EvaluatePython {
136136

137137
case (a: ArrayData, array: ArrayType) =>
138138
val length = a.numElements()
139-
val values = new Array[Any](length)
139+
val values = new java.util.ArrayList[Any](length)
140140
var i = 0
141141
while (i < length) {
142142
if (a.isNullAt(i)) {
143-
values(i) = null
143+
values.add(null)
144144
} else {
145-
toJava(a.get(i), array.elementType)
145+
values.add(toJava(a.get(i), array.elementType))
146146
}
147147
i += 1
148148
}

0 commit comments

Comments
 (0)