Skip to content

Commit

Permalink
Ignore in HivePartitionFunction.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
acvictor committed Apr 5, 2024
1 parent bc6d983 commit 804dd03
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions velox/connectors/hive/HivePartitionFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@ int32_t hashTimestamp(const Timestamp& ts) {
return hashInt64((ts.getSeconds() << 30) | ts.getNanos());
}

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wreturn-type"
template <TypeKind kind>
inline uint32_t hashOne(
const typename TypeTraits<kind>::NativeType& /* value */) {
VELOX_UNSUPPORTED(
"Hive partitioning function doesn't support {} type",
TypeTraits<kind>::name);
}
#pragma GCC diagnostic pop

template <>
inline uint32_t hashOne<TypeKind::BOOLEAN>(const bool& value) {
Expand Down

0 comments on commit 804dd03

Please sign in to comment.