forked from duckdb/duckdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apply patch to substrait for std::unordered_map
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/src/from_substrait.cpp b/src/from_substrait.cpp | ||
index eeccd60..79ab3bc 100644 | ||
--- a/src/from_substrait.cpp | ||
+++ b/src/from_substrait.cpp | ||
@@ -26,7 +26,7 @@ | ||
#include "duckdb/main/client_data.hpp" | ||
|
||
namespace duckdb { | ||
-const std::unordered_map<std::string, std::string> SubstraitToDuckDB::function_names_remap = { | ||
+const unordered_map<std::string, std::string> SubstraitToDuckDB::function_names_remap = { | ||
{"modulus", "mod"}, {"std_dev", "stddev"}, {"starts_with", "prefix"}, | ||
{"ends_with", "suffix"}, {"substring", "substr"}, {"char_length", "length"}, | ||
{"is_nan", "isnan"}, {"is_finite", "isfinite"}, {"is_infinite", "isinf"}, | ||
diff --git a/src/to_substrait.cpp b/src/to_substrait.cpp | ||
index 39044a2..3271038 100644 | ||
--- a/src/to_substrait.cpp | ||
+++ b/src/to_substrait.cpp | ||
@@ -20,7 +20,7 @@ | ||
#include "duckdb/execution/index/art/art_key.hpp" | ||
|
||
namespace duckdb { | ||
-const std::unordered_map<std::string, std::string> DuckDBToSubstrait::function_names_remap = { | ||
+const unordered_map<std::string, std::string> DuckDBToSubstrait::function_names_remap = { | ||
{"mod", "modulus"}, | ||
{"stddev", "std_dev"}, | ||
{"prefix", "starts_with"}, |