We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2941710 commit 99b45ffCopy full SHA for 99b45ff
1 file changed
python/tests/test_dataframe.py
@@ -268,6 +268,19 @@ def test_sort(df):
268
assert table.to_pydict() == expected
269
270
271
+def test_sort_string_and_expression_equivalent(df):
272
+ from datafusion import col
273
+
274
+ result_str = df.sort("a").to_pydict()
275
+ result_expr = df.sort(col("a")).to_pydict()
276
+ assert result_str == result_expr
277
278
279
+def test_filter_string_unsupported(df):
280
+ with pytest.raises(AttributeError):
281
+ df.filter("a > 1")
282
283
284
def test_drop(df):
285
df = df.drop("c")
286
0 commit comments