Skip to content

Commit

Permalink
Changes in new functions added
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-lbravozuniga committed Apr 24, 2024
1 parent fd32801 commit 4e84394
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/snowflake/snowpark_java/Functions.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,7 @@ public static Column count(Column col) {
public static Column countDistinct(String first, String... remaining) {
return new Column(
com.snowflake.snowpark.functions.countDistinct(
first,
remaining));
first, JavaUtils.stringArrayToStringSeq(remaining)));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/com/snowflake/snowpark/functions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ object functions {
* @since 1.13.0
*/
def countDistinct(colName: String, colNames: String*): Column =
count_distinct(col(colName), colNames.map(Column.apply) : _*)
count_distinct(col(colName), colNames.map(Column.apply): _*)

/**
* Returns either the number of non-NULL distinct records for the specified columns,
Expand All @@ -228,7 +228,7 @@ object functions {
* @since 1.13.0
*/
def countDistinct(expr: Column, exprs: Column*): Column =
count_distinct(expr, exprs)
count_distinct(expr, exprs: _*)

/**
* Returns either the number of non-NULL distinct records for the specified columns,
Expand Down

0 comments on commit 4e84394

Please sign in to comment.