Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Move window function pre-project creation to DAG canonicalization. #545

Merged
merged 2 commits into from
Jun 23, 2023

Conversation

ienkovich
Copy link
Contributor

Move DAG transformation for window functions we use in RelAlgDagBuilder to canonizeQuery so that it's applied to both Calcite and QueryBuilder generated queries. Some minor functions were moved to the IR module.

Resolves #541
Resolves #543

@ienkovich ienkovich requested a review from alexbaden June 23, 2023 19:14
dag.setNodes(std::move(nodes));
}
}

} // namespace

void canonizeQuery(QueryDag& dag) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should have realized this before - but should this be canonicalizeQuery?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, sure it should.

Signed-off-by: ienkovich <[email protected]>
@alexbaden alexbaden merged commit 440f0d5 into main Jun 23, 2023
@alexbaden alexbaden deleted the ienkovich/window-pre-project branch June 23, 2023 23:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug in reproduction of H2O Groupby Q8 Window function used in QueryBuilder fails to execute
2 participants