Skip to content

Commit aa44e2b

Browse files
shehabgaminCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent d1e4dc7 commit aa44e2b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

python/pysail/tests/spark/test_checkpoint.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,11 @@ def test_dataframe_checkpoint_with_duplicate_columns(spark, method, eager):
7474
df = spark.createDataFrame([(1, 2), (3, 4)], ["left", "right"]).selectExpr("left as id", "right as id")
7575
checkpointed = getattr(df, method)(eager)
7676
pdf = checkpointed.toPandas()
77+
rows = sorted(pdf.values.tolist())
7778

7879
assert checkpointed.columns == ["id", "id"]
7980
assert pdf.columns.tolist() == ["id", "id"]
80-
assert pdf.values.tolist() == [[1, 2], [3, 4]]
81+
assert rows == [[1, 2], [3, 4]]
8182

8283

8384
def test_dataframe_checkpoint_after_transformation(spark):

0 commit comments

Comments
 (0)