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 e69fb9b commit 54b3c2eCopy full SHA for 54b3c2e
python/tests/test_dataframe.py
@@ -276,6 +276,14 @@ def test_sort_string_and_expression_equivalent(df):
276
assert result_str == result_expr
277
278
279
+def test_aggregate_string_and_expression_equivalent(df):
280
+ from datafusion import col
281
+
282
+ result_str = df.aggregate("a", [f.count()]).to_pydict()
283
+ result_expr = df.aggregate(col("a"), [f.count()]).to_pydict()
284
+ assert result_str == result_expr
285
286
287
def test_filter_string_unsupported(df):
288
with pytest.raises(TypeError, match=r"col\(\) or lit\(\)"):
289
df.filter("a > 1")
0 commit comments