Package com.snowflake.snowpark_java
Class Functions
java.lang.Object
com.snowflake.snowpark_java.Functions
The static column factories a handler imports as
import static
com.snowflake.snowpark_java.Functions.*;.
Every one builds a Column over the SQL Frostlake would run for it, so the set is open-ended
by construction: anything named here is spelled out, and anything not named is still reachable through
callBuiltin(java.lang.String, com.snowflake.snowpark_java.Column...) or sqlExpr(java.lang.String). That is deliberate — Snowpark's own Functions class has
hundreds of entries, and mirroring it exhaustively would be a list to maintain rather than behaviour
to get right.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Columnstatic Columnstatic ColumncallBuiltin(String functionName, Column... arguments) Any built-in by name, so a function this class does not spell out is still reachable.static ColumnA user-defined function by name.static Columnstatic Columnstatic Columnstatic Columnstatic Columnstatic Columnstatic Columncount_distinct(Column... columns) static Columnstatic Columnstatic Columnstatic Columnstatic Columnstatic ColumnA literal.static Columnstatic Columnstatic Columnstatic Columnstatic Columnstatic ColumnRaw SQL, passed through untouched.static Columnstatic Columnstatic Columnstatic Columnstatic Columnstatic Column
-
Method Details
-
col
-
column
-
sqlExpr
Raw SQL, passed through untouched. -
lit
A literal. Strings are quoted the way the engine's own decoder expects, so an apostrophe in the value cannot end the literal early. -
count
-
sum
-
avg
-
mean
-
min
-
max
-
stddev
-
count_distinct
-
upper
-
lower
-
trim
-
length
-
concat
-
substring
-
abs
-
round
-
floor
-
ceil
-
coalesce
-
iff
-
current_date
-
current_timestamp
-
to_date
-
callBuiltin
Any built-in by name, so a function this class does not spell out is still reachable. -
callUDF
A user-defined function by name. Identical in shape tocallBuiltin(java.lang.String, com.snowflake.snowpark_java.Column...); kept for the API.
-