From ccdd64b32e78f2d297897e94290ee6c4aa94be77 Mon Sep 17 00:00:00 2001 From: Yan Feng Date: Fri, 22 Nov 2024 17:46:59 +0800 Subject: [PATCH] Fix minor details Signed-off-by: Yan Feng --- src/main/cpp/src/hive_hash.cu | 41 +++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/src/main/cpp/src/hive_hash.cu b/src/main/cpp/src/hive_hash.cu index a80281560..4e6cfad10 100644 --- a/src/main/cpp/src/hive_hash.cu +++ b/src/main/cpp/src/hive_hash.cu @@ -37,6 +37,8 @@ using hive_hash_value_t = int32_t; constexpr hive_hash_value_t HIVE_HASH_FACTOR = 31; constexpr hive_hash_value_t HIVE_INIT_HASH = 0; +constexpr int MAX_NESTED_DEPTH = 8; + hive_hash_value_t __device__ inline compute_int(int32_t key) { return key; } hive_hash_value_t __device__ inline compute_long(int64_t key) @@ -157,7 +159,7 @@ hive_hash_value_t __device__ inline hive_hash_function::oper * @tparam hash_function Hash functor to use for hashing elements. Must be hive_hash_function. * @tparam Nullate A cudf::nullate type describing whether to check for nulls. */ -template