Skip to content

Commit

Permalink
Fix multiple SQL transforms if ; in override query (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 authored Jun 17, 2024
1 parent d051e8a commit 536e6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lumen/sources/duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get(self, table, **query):
if self.filter_in_sql:
sql_transforms = [SQLFilter(conditions=conditions)] + sql_transforms
for st in sql_transforms:
sql_expr = st.apply(sql_expr)
sql_expr = st.apply(sql_expr.rstrip(";"))
df = self._connection.execute(sql_expr).fetch_df(date_as_object=True)
if not self.filter_in_sql:
df = Filter.apply_to(df, conditions=conditions)
Expand Down

0 comments on commit 536e6d8

Please sign in to comment.