From 341f5a9b67c5dc253a41d3cae6239a032237f546 Mon Sep 17 00:00:00 2001 From: Anshul Data Date: Mon, 12 Aug 2024 17:05:29 +0530 Subject: [PATCH] bitwise_not returns same precision. Added snowflake specific behavior for (1,0) in a different file --- extensions/functions_snowflake.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 extensions/functions_snowflake.yaml diff --git a/extensions/functions_snowflake.yaml b/extensions/functions_snowflake.yaml new file mode 100644 index 000000000..f8d57ef22 --- /dev/null +++ b/extensions/functions_snowflake.yaml @@ -0,0 +1,14 @@ +%YAML 1.2 +--- +scalar_functions: + - name: "bitwise_not" + description: > + Return the bitwise NOT result for one decimal input in which Precision is 1. + Result precision will be equal to 2. + impls: + - args: + - name: x + value: "DECIMAL<1,0>" + return: "DECIMAL<2,0>" + +