Skip to content

Commit

Permalink
precompile query
Browse files Browse the repository at this point in the history
  • Loading branch information
Mause committed Nov 30, 2023
1 parent 600eccc commit 42b95e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion duckdb_engine/tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,5 +440,10 @@ def test_361(engine: Engine) -> None:
part = "year"
date_part = func.date_part(part, test.c.dt)

Check warning on line 441 in duckdb_engine/tests/test_basic.py

View check run for this annotation

Codecov / codecov/patch

duckdb_engine/tests/test_basic.py#L437-L441

Added lines #L437 - L441 were not covered by tests

stmt = select(date_part).select_from(test).group_by(date_part)
stmt = (

Check warning on line 443 in duckdb_engine/tests/test_basic.py

View check run for this annotation

Codecov / codecov/patch

duckdb_engine/tests/test_basic.py#L443

Added line #L443 was not covered by tests
select(date_part)
.select_from(test)
.group_by(date_part)
.compile(dialect=engine.dialect, compile_kwargs={"literal_binds": True})
)
conn.execute(stmt).fetchall()

Check warning on line 449 in duckdb_engine/tests/test_basic.py

View check run for this annotation

Codecov / codecov/patch

duckdb_engine/tests/test_basic.py#L449

Added line #L449 was not covered by tests

0 comments on commit 42b95e1

Please sign in to comment.