Expand description
Spark-compatible UDF implementations.
Functions that match Apache Spark / Databricks behaviour so existing Spark SQL transformations run unchanged inside the embedded engine.
Functions§
- make_
millis_ to_ ts_ ntz_ udf millis_to_ts_ntz(millis)— INT64 milliseconds since epoch → timezone-naive microsecond timestamp (Timestamp(µs, None)).- make_
millis_ to_ ts_ udf millis_to_ts(millis)— INT64 milliseconds since epoch → timezone-aware (UTC) microsecond timestamp.- make_
sha2_ udf sha2(expr, bit_length)— Databricks/Spark-compatible SHA-2 returning a lowercase HEX STRING (Utf8), NOT raw bytes.- make_
to_ timestamp_ ms_ ntz_ udf to_timestamp_ms_ntz(millis)— INT64 milliseconds since epoch → timezone-naive microsecond timestamp (Timestamp(µs, None)), the tz-naive counterpart ofmake_to_timestamp_ms_udf.- make_
to_ timestamp_ ms_ udf to_timestamp_ms(millis)— timezone-aware (UTC) alias ofmake_millis_to_ts_udfunder a Spark-familiar name.