We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 349b119 commit 8c32d31Copy full SHA for 8c32d31
python/pyspark/sql/tests.py
@@ -1216,7 +1216,7 @@ def test_typed_aggregate(self):
1216
sum_tuple = lambda values: sum(map(lambda value: value[0] * value[1], values))
1217
1218
def get_python_result(data, key_func, agg_func):
1219
- data.sort(key=key_func)
+ data = sorted(data, key=key_func)
1220
expected_result = []
1221
import itertools
1222
for key, values in itertools.groupby(data, key_func):
0 commit comments