From 43de0831d6ef8b0560be82c6c5c59b4356c347a5 Mon Sep 17 00:00:00 2001 From: drethereum Date: Mon, 22 May 2023 16:06:31 -0600 Subject: [PATCH] reverted macro --- macros/hex_to_str_udf.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 macros/hex_to_str_udf.sql diff --git a/macros/hex_to_str_udf.sql b/macros/hex_to_str_udf.sql new file mode 100644 index 0000000..7153cc0 --- /dev/null +++ b/macros/hex_to_str_udf.sql @@ -0,0 +1,5 @@ +{% macro udf_hex_to_string(hex_string) %} + LTRIM(regexp_replace( + try_hex_decode_string({{ hex_string }}), + '[\x00-\x1F\x7F-\x9F\xAD]', '', 1)) +{% endmacro %} \ No newline at end of file