github-actions[bot] commented on code in PR #62512:
URL: https://github.com/apache/doris/pull/62512#discussion_r3136014802


##########
be/test/exec/common/hash_table/hash_crc32_return32_test.cpp:
##########
@@ -0,0 +1,293 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+#include "exec/common/hash_table/hash_crc32_return32.h"
+
+#include <gtest/gtest.h>
+
+#include <cstring>
+#include <string>
+
+namespace doris {
+
+class HashCRC32Return32Test : public ::testing::Test {};
+
+// --- UInt8 golden values ---

Review Comment:
   These golden values only match the CRC-intrinsic code path. Once 
`HashCRC32Return32` is fixed to preserve the existing non-CRC fallback contract 
(`int_hash64` / `StringRefHash64` on builders without SSE4.2 or ARM CRC32), 
every expectation in this file becomes wrong on those platforms. Please either 
gate the expected values with the same feature macros or compare against the 
platform's existing production hash implementation instead of hard-coding one 
path.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to