snowflake.snowpark.functions.unicode¶
- snowflake.snowpark.functions.unicode(input_str: Union[snowflake.snowpark.column.Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.45.0/src/snowflake/snowpark/_functions/scalar_functions.py#L4404-L4422)¶
Returns the Unicode code point of the first character in a string.
- Parameters:
input_str (ColumnOrName) – The input string column or string value to get the Unicode code point from.
- Returns:
The Unicode code point of the first character. Returns 0 for empty strings.
- Return type:
- Examples::