-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
[native] Add support shuffle compression for Prestissimo #24295
Conversation
xiaoxmeng
commented
Dec 22, 2024
cb113ba
to
c97524a
Compare
@@ -283,6 +283,10 @@ class SessionProperties { | |||
static constexpr const char* kPrefixSortMinRows = | |||
"native_prefixsort_min_rows"; | |||
|
|||
/// If true, enable the shuffle compression. | |||
static constexpr const char* kShuffleCompressionEnabled = | |||
"exchange_compression"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add native_ in front?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a java session
} else if (it.first == SessionProperties::kShuffleCompressionEnabled) { | ||
if (it.second == "true") { | ||
configs[core::QueryConfig::kShuffleCompressionKind] = std::to_string( | ||
static_cast<uint32_t>(velox::common::CompressionKind_LZ4)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We default to use lz4? Do we want to provide options for compression kind as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Java is hard coded. I put comment there.