Skip to content

Commit c64a66b

Browse files
Update python/tests/test_dataframe.py
Co-authored-by: Tim Saucer <timsaucer@gmail.com>
1 parent e6109a4 commit c64a66b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/tests/test_dataframe.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,11 @@ def test_filter(df):
275275

276276

277277
def test_parse_sql_expr(df):
278+
plan1 = df.filter(df.parse_sql_expr("a > 2")).logical_plan()
279+
plan2 = df.filter(column("a") > literal(2)).logical_plan()
280+
# object equality not implemented but string representation should match
281+
assert str(plan1) == str(plan2)
282+
278283
df1 = df.filter(df.parse_sql_expr("a > 2")).select(
279284
column("a") + column("b"),
280285
column("a") - column("b"),

0 commit comments

Comments
 (0)