Skip to content

Commit

Permalink
fix spark udf_map
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohahaha committed Nov 20, 2024
1 parent ec414d4 commit 46de0a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion velox/functions/sparksql/registration/RegisterMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ namespace facebook::velox::functions {
void registerSparkMapFunctions(const std::string& prefix) {
VELOX_REGISTER_VECTOR_FUNCTION(
udf_map_allow_duplicates, prefix + "map_from_arrays");
VELOX_REGISTER_VECTOR_FUNCTION(udf_map, prefix + "map");
}

namespace sparksql {
void registerMapFunctions(const std::string& prefix = "") {
registerSparkMapFunctions(prefix);
VELOX_REGISTER_VECTOR_FUNCTION(udf_map, prefix + "map");
}
} // namespace sparksql
} // namespace facebook::velox::functions

0 comments on commit 46de0a3

Please sign in to comment.