Skip to content

Commit 8c32d31

Browse files
committed
small fix
1 parent 349b119 commit 8c32d31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/sql/tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ def test_typed_aggregate(self):
12161216
sum_tuple = lambda values: sum(map(lambda value: value[0] * value[1], values))
12171217

12181218
def get_python_result(data, key_func, agg_func):
1219-
data.sort(key=key_func)
1219+
data = sorted(data, key=key_func)
12201220
expected_result = []
12211221
import itertools
12221222
for key, values in itertools.groupby(data, key_func):

0 commit comments

Comments
 (0)