Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GLUTEN-7534][CH] Refactor and optimize sparkDecimalXXX functions #8105

Merged
merged 15 commits into from
Dec 27, 2024

Conversation

taiyang-li
Copy link
Contributor

@taiyang-li taiyang-li commented Nov 29, 2024

What changes were proposed in this pull request?

Changes:

  • Refactor and simplify implementation for sparkDecimal* functions
  • Use clang built-in i256 to replace CH Int256 in sparkDecimal* functions.
  • Support JIT for sparkDivide and sparkCastFloatToInt* functions(default disabled)
  • Support JIT for sparkDecimal* functions (default disabled)
  • Support JIT for cast from/to decimal functions (default disabled)

(Fixes: #7534)

Benefits:

How was this patch tested?

(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)

(If this patch involves UI changes, please attach a screenshot; otherwise, remove this)

Copy link

#7534

Copy link

Run Gluten Clickhouse CI on x86

Copy link

github-actions bot commented Dec 2, 2024

Run Gluten Clickhouse CI on x86

2 similar comments
Copy link

github-actions bot commented Dec 2, 2024

Run Gluten Clickhouse CI on x86

Copy link

github-actions bot commented Dec 2, 2024

Run Gluten Clickhouse CI on x86

@taiyang-li taiyang-li changed the title [GLUTEN-7534][CH][TEST] Run uts when JIT enabled [GLUTEN-7534][CH][TEST] Run uts with JIT enabled Dec 2, 2024
Copy link

github-actions bot commented Dec 2, 2024

Run Gluten Clickhouse CI on x86

7 similar comments
Copy link

github-actions bot commented Dec 2, 2024

Run Gluten Clickhouse CI on x86

Copy link

github-actions bot commented Dec 2, 2024

Run Gluten Clickhouse CI on x86

Copy link

github-actions bot commented Dec 3, 2024

Run Gluten Clickhouse CI on x86

Copy link

github-actions bot commented Dec 3, 2024

Run Gluten Clickhouse CI on x86

Copy link

github-actions bot commented Dec 3, 2024

Run Gluten Clickhouse CI on x86

@taiyang-li
Copy link
Contributor Author

Run Gluten Clickhouse CI on x86

Copy link

github-actions bot commented Dec 3, 2024

Run Gluten Clickhouse CI on x86

Copy link

github-actions bot commented Dec 4, 2024

Run Gluten Clickhouse CI on x86

6 similar comments
Copy link

github-actions bot commented Dec 4, 2024

Run Gluten Clickhouse CI on x86

Copy link

github-actions bot commented Dec 5, 2024

Run Gluten Clickhouse CI on x86

Copy link

github-actions bot commented Dec 5, 2024

Run Gluten Clickhouse CI on x86

Copy link

github-actions bot commented Dec 6, 2024

Run Gluten Clickhouse CI on x86

Copy link

github-actions bot commented Dec 6, 2024

Run Gluten Clickhouse CI on x86

Copy link

github-actions bot commented Dec 6, 2024

Run Gluten Clickhouse CI on x86

Copy link

github-actions bot commented Dec 6, 2024

Run Gluten Clickhouse CI on x86

3 similar comments
Copy link

github-actions bot commented Dec 6, 2024

Run Gluten Clickhouse CI on x86

Copy link

Run Gluten Clickhouse CI on x86

Copy link

Run Gluten Clickhouse CI on x86

@github-actions github-actions bot removed the CORE works for Gluten Core label Dec 25, 2024
Copy link

Run Gluten Clickhouse CI on x86

Copy link

Run Gluten Clickhouse CI on x86

Copy link

Run Gluten Clickhouse CI on x86

@taiyang-li taiyang-li marked this pull request as draft December 26, 2024 09:25
@taiyang-li
Copy link
Contributor Author

We found serious performance regression after ClickHouse bumping llvm from 15.x to 18.x. Turn it into draft status.

Copy link

Run Gluten Clickhouse CI on x86

@taiyang-li taiyang-li marked this pull request as ready for review December 26, 2024 10:13
@taiyang-li taiyang-li changed the title [GLUTEN-7534][CH] Complete JIT for sparkXX functions and optimize performance of sparkDecimalXX functions [GLUTEN-7534][CH] Refactor and optimize sparkDecimalXXX functions Dec 26, 2024
@baibaichen
Copy link
Contributor

We need performace test for this PR.

@baibaichen
Copy link
Contributor

let's add benchmark codes @taiyang-li

Copy link

Run Gluten Clickhouse CI on x86

Copy link
Contributor

@baibaichen baibaichen left a comment

Choose a reason for hiding this comment

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

LGTM

@taiyang-li taiyang-li merged commit 74cc9d7 into apache:main Dec 27, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CH] Optimize sparkDecimalXXX functions and support more expressions for JIT
2 participants