Desmond Cheong
09/19/2024, 8:35 AMpytest --doctest-modules --continue-on-collection-errors daft/dataframe/dataframe.py daft/expressions/expressions.py daft/convert.py daft/udf.py fail on main? It's failing locally for me, and occasionally on CI. But the diffs are non human visible. For example:
/Users/desmond/Daft/daft/udf.py:402: DocTestFailure
____________________________________________________________________________ [doctest] daft.udf.udf _____________________________________________________________________________
468
469 Example:
470 >>> import daft
471 >>> @daft.udf(return_dtype=daft.DataType.int64())
472 ... def add_constant(x: daft.Series, c=10):
473 ... return [v + c for v in x.to_pylist()]
474 >>>
475 >>> df = daft.from_pydict({"x": [1, 2, 3]})
476 >>> df = df.with_column("new_x", add_constant(df["x"], c=20))
477 >>> df.show()
Differences (unified diff with -expected +actual):
@@ -1,6 +1,6 @@
╭───────┬───────╮
-│ x ┆ new_x │
-│ --- ┆ --- │
-│ Int64 ┆ Int64 │
+│ x ┆ new_x │
+│ --- ┆ --- │
+│ Int64 ┆ Int64 │
╞═══════╪═══════╡
│ 1 ┆ 21 │Colin Ho
09/19/2024, 3:13 PMDesmond Cheong
09/19/2024, 5:07 PM