diff --git a/presto-native-execution/presto_cpp/main/QueryContextManager.cpp b/presto-native-execution/presto_cpp/main/QueryContextManager.cpp index 9797fa5205f24..64462f0d3b7bf 100644 --- a/presto-native-execution/presto_cpp/main/QueryContextManager.cpp +++ b/presto-native-execution/presto_cpp/main/QueryContextManager.cpp @@ -228,12 +228,14 @@ QueryContextManager::toVeloxConfigs( if (it.second == "true") { // NOTE: Presto java only support lz4 compression so configure the same // compression kind on velox. - configs[core::QueryConfig::kShuffleCompressionKind] = std::to_string( - static_cast(velox::common::CompressionKind_LZ4)); + configs[core::QueryConfig::kShuffleCompressionKind] = + velox::common::compressionKindToString( + velox::common::CompressionKind_LZ4); } else { VELOX_USER_CHECK_EQ(it.second, "false"); - configs[core::QueryConfig::kShuffleCompressionKind] = std::to_string( - static_cast(velox::common::CompressionKind_NONE)); + configs[core::QueryConfig::kShuffleCompressionKind] = + velox::common::compressionKindToString( + velox::common::CompressionKind_NONE); } } else { configs[sessionProperties_.toVeloxConfig(it.first)] = it.second;