From 7d330394f24f550bc66ed210b5fd5f58abab9ce2 Mon Sep 17 00:00:00 2001 From: "shyamala.jayabalan" Date: Wed, 18 Sep 2024 16:12:03 -0400 Subject: [PATCH] Added new functions --- .../snowflake/snowpark_java/Functions.java | 206 +++++++++++++++ .../com/snowflake/snowpark/functions.scala | 250 ++++++++++++++++++ .../snowpark_test/JavaFunctionSuite.java | 79 ++++++ .../snowpark_test/FunctionSuite.scala | 47 ++++ 4 files changed, 582 insertions(+) diff --git a/src/main/java/com/snowflake/snowpark_java/Functions.java b/src/main/java/com/snowflake/snowpark_java/Functions.java index ce790653..b04a1b27 100644 --- a/src/main/java/com/snowflake/snowpark_java/Functions.java +++ b/src/main/java/com/snowflake/snowpark_java/Functions.java @@ -4641,6 +4641,212 @@ public static Column format_number(Column x, Integer d) { return new Column(com.snowflake.snowpark.functions.format_number(x.toScalaColumn(), d)); } + /** + * This leverages JSON_EXTRACT_PATH_TEXT and improves functionality by allowing multiple columns + * in a single call, whereas JSON_EXTRACT_PATH_TEXT must be called once for every column. + * + *

NOTE: + * + *