Class SnowparkFunctions
- java.lang.Object
-
- com.snowflake.connectors.util.sql.SnowparkFunctions
-
-
Constructor Summary
Constructors Constructor Description SnowparkFunctions()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Column
lit(Object literal)
Creates a Column expression for a literal value.static Column
lit(Instant instant)
Deprecated.
-
-
-
Method Detail
-
lit
@Deprecated public static Column lit(Instant instant)
Deprecated.It shouldn't be used because it uses wrong timestamp mapping which causes saving a timestamp in a wrong time zone. Uselit(Object)
with a Timestamp argument mapped byTimestampUtil.toTimestamp(Instant)
- Parameters:
instant
- instant- Returns:
- the result column
-
lit
public static Column lit(Object literal)
Creates a Column expression for a literal value. Delegates toFunctions.lit(Object)
This function should be used instead ofFunctions.lit(Object)
in order to avoid passingInstant
argument which causes wrong timestamp mapping.- Parameters:
literal
- the literal value- Returns:
- the result column
- See Also:
lit(Instant)
-
-