Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/CATALOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ hflow curate --sql-file query.sql \

Pass exactly one of the positional SQL string or `--sql-file`; passing both or
neither is an error.
The curate() function accepts exactly one SELECT statement

The manifest is written **manifest-last**: to a temp file, renamed into place
only after the query completed, so a partial manifest is unreachable.
Expand Down
15 changes: 15 additions & 0 deletions tests/test_catalog_curation.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,21 @@ def test_constrained_connection_confines_sql_to_the_catalog(tmp_path: Path) -> N
False,
id="legitimate-single-select",
),
pytest.param(
"PIVOT episodes ON status USING count(*)",
True,
id="pivot", # DuckDB secretly expands this to CREATE then SELECT
),
pytest.param(
"DESCRIBE SELECT episode_id FROM episodes",
False,
id="describe",
),
pytest.param(
"SUMMARIZE SELECT episode_id FROM episodes",
False,
id="summarize",
),
]


Expand Down
Loading