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

Introduce new execution sequence builder and work unit builder #127

Merged
merged 3 commits into from
Jan 13, 2023

Conversation

ienkovich
Copy link
Contributor

This is an updated version of https://github.com/intel-ai/omniscidb/pull/576. This time changes are ready for review and merge. Please see the original PR for more details on the proposed changes.

@ienkovich ienkovich force-pushed the ienkovich/query-exec-plan branch from 197e78a to 21442ff Compare January 4, 2023 20:41
@ienkovich
Copy link
Contributor Author

@alexbaden @kurapov-peter current CI failures are not related to PR, it's modin/numpy version issue and the known flaky test on CUDA. So, this PR is fully ready for review.

@ienkovich ienkovich force-pushed the ienkovich/query-exec-plan branch from 09e00bd to be73e14 Compare January 9, 2023 20:41
Copy link
Contributor

@alexbaden alexbaden left a comment

Choose a reason for hiding this comment

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

Looks nice, I like the design of having a builder/translator and a separate sequencer.

ExprPtrVector col_input_exprs,
ExprPtrVector table_func_input_exprs,
std::vector<TargetMetaInfo> tuple_type)
: Node(std::move(inputs))
, function_name_(function_name)
, fields_(fields)
, fields_(std::move(fields))
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this change copy -> move all the way through from the constructor?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I prefer plain object instead of a constant reference for vector args in constructors. This is because const reference always means we create a copy, and plain object means we can create it via either copy or move on a call site. Many of such places were modified during IR refactoring, but some remained.

I see there are still some similar cases left. I think I'll go through Node constructors and make them all in a separate PR.

@ienkovich ienkovich merged commit b0bc9ca into main Jan 13, 2023
@ienkovich ienkovich deleted the ienkovich/query-exec-plan branch January 13, 2023 17:08
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.

2 participants