Skip to content

fix(core): allow operations without hasOutput to omit dataset - #2476

Merged
rafal-hawrylak merged 2 commits into
mainfrom
fix-non-output-operation-dataset
Nov 23, 2026
Merged

rafal-hawrylak merged 2 commits into
mainfrom
fix-non-output-operation-dataset

Conversation

@rafal-hawrylak

Copy link
Copy Markdown
Collaborator

Operations without hasOutput: true execute standalone SQL statements and do not materialize a relation at their action target, so requiring defaultDataset or dataset rejected valid SQL-only operation workflows. Exempt non-output operations from the dataset target check while still requiring a dataset when hasOutput is true or when schema() is called. Also guard empty target schemas during target finalization so datasetSuffix is not appended to unset schemas.

Operations without hasOutput: true execute standalone SQL statements and do not materialize a relation at their action target, so requiring defaultDataset or dataset rejected valid SQL-only operation workflows. Exempt non-output operations from the dataset target check while still requiring a dataset when hasOutput is true or when schema() is called. Also guard empty target schemas during target finalization so datasetSuffix is not appended to unset schemas.
@rafal-hawrylak
rafal-hawrylak requested a review from a team as a code owner November 23, 2026 07:41
@rafal-hawrylak
rafal-hawrylak requested review from Ford544, apilaskowski and mbiernacik and removed request for a team November 23, 2026 07:41
@rafal-hawrylak
rafal-hawrylak enabled auto-merge (squash) November 23, 2026 11:41
@rafal-hawrylak
rafal-hawrylak merged commit a27f3a9 into main Nov 23, 2026
17 checks passed
@rafal-hawrylak
rafal-hawrylak deleted the fix-non-output-operation-dataset branch November 23, 2026 11:43
apilaskowski pushed a commit that referenced this pull request Nov 23, 2026
Bump DF_VERSION from 3.1.6 to 3.1.7 to publish a new patch release of @dataform/core and @dataform/cli to npm. This release includes operations without hasOutput omitting dataset (#2476), domain project target and graph validation fixes (#2471), multiline rowConditions assertion fixes (#2424), BigQuery primitive field mappings (#2446), Mermaid graph output (#2435) and npm dependency security updates (#2472 and #2473). Publishing 3.1.7 allows projects to pin dataformCoreVersion to 3.1.7 in workflow_settings.yaml and install the updated CLI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants