Skip to content

[CORE] Use RAS's cost model for legacy transition planner to evaluate cost of transitions#8527

Merged
zhztheplayer merged 7 commits intoapache:mainfrom
zhztheplayer:wip-transition-cost
Jan 15, 2025
Merged

[CORE] Use RAS's cost model for legacy transition planner to evaluate cost of transitions#8527
zhztheplayer merged 7 commits intoapache:mainfrom
zhztheplayer:wip-transition-cost

Conversation

@zhztheplayer
Copy link
Copy Markdown
Member

@zhztheplayer zhztheplayer commented Jan 14, 2025

This combines RAS cost model into transition graph's cost model to unify the cost evaluation code of transitions.

For example, a transition from Arrow Java columnar batch (referred to as Arrow Java batch) to Velox columnar batch (referred to as Velox batch) could be selected from the following candidates:

  1. Arrow Java Batch ->(C2R) Spark Row ->(Velox R2C) Velox Batch
  2. Arrow Java Batch ->(Offload) Arrow Native Batch ->(Import) Velox Batch

The transition planner should evaluate the candidates' costs then select a cheaper one (for the case, usually the second one) based on the cost model. After the change, it will reuse RAS's cost model instead of the hard coded transition cost model which will be removed in this PR.

Also, remove the rough2 RAS cost model as unused.

@github-actions github-actions bot added CORE works for Gluten Core VELOX CLICKHOUSE labels Jan 14, 2025
@apache apache deleted a comment from github-actions bot Jan 14, 2025
@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@zhztheplayer zhztheplayer changed the title [CORE] Use RAS's legacy cost model for transition planner to evaluate cost of transitions. [CORE] Use RAS's legacy cost model for legacy transition planner to evaluate cost of transitions Jan 14, 2025
@zhztheplayer zhztheplayer changed the title [CORE] Use RAS's legacy cost model for legacy transition planner to evaluate cost of transitions [CORE] Use RAS's cost model for legacy transition planner to evaluate cost of transitions Jan 14, 2025
@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

Run Gluten Clickhouse CI on x86

1 similar comment
@zhztheplayer
Copy link
Copy Markdown
Member Author

Run Gluten Clickhouse CI on x86

@zhztheplayer zhztheplayer merged commit 0b5a46a into apache:main Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLICKHOUSE CORE works for Gluten Core VELOX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants