We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 268f2fa commit 50b4328Copy full SHA for 50b4328
1 file changed
python/datafusion/dataframe.py
@@ -424,10 +424,10 @@ def filter(self, *predicates: Expr) -> DataFrame:
424
"""
425
df = self.df
426
for p in predicates:
427
- if isinstance(p, str) or not isinstance(p, Expr):
+ if not isinstance(p, Expr):
428
error = "Use col() or lit() to construct expressions"
429
raise TypeError(error)
430
- df = df.filter(expr_list_to_raw_expr_list(p)[0])
+ df = df.filter(p.expr)
431
return DataFrame(df)
432
433
def with_column(self, name: str, expr: Expr) -> DataFrame:
0 commit comments