Skip to content

Commit

Permalink
Map to velox function name
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Jan 16, 2024
1 parent 5649887 commit 8ac6206
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpp/velox/substrait/SubstraitParser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ std::vector<TypePtr> SubstraitParser::sigToTypes(const std::string& signature) {
return types;
}

// Maps substrait function name to velox function name.
std::unordered_map<std::string, std::string> SubstraitParser::substraitVeloxFunctionMap_ = {
{"is_not_null", "isnotnull"}, /*Spark functions.*/
{"is_null", "isnull"},
Expand All @@ -300,7 +301,8 @@ std::unordered_map<std::string, std::string> SubstraitParser::substraitVeloxFunc
{"bit_and_merge", "bitwise_and_agg_merge"},
{"murmur3hash", "hash_with_seed"},
{"modulus", "mod"}, /*Presto functions.*/
{"date_format", "format_datetime"}};
{"date_format", "format_datetime"},
{"regexp_replace", "regex_replace"}};

const std::unordered_map<std::string, std::string> SubstraitParser::typeMap_ = {
{"bool", "BOOLEAN"},
Expand Down

0 comments on commit 8ac6206

Please sign in to comment.