Audit notes for expressions in this category that have been audited. Absence of an entry means the expression has not been audited yet, not that it is unsupported. See the user guide Spark Expression Support for current support status.
current_date; constant-folded to a literal by Spark's ComputeCurrentTime rule before Comet sees the plan.ComputeCurrentTime rule before Comet sees the plan.ComputeCurrentTime rule before Comet sees the plan.DateType value to a fixed US-English abbreviated day name (DayOfWeek.getDisplayName(TextStyle.SHORT, Locale.US)), with no session-locale or timezone dependence.inputTypes widened to StringTypeWithCollation; behaviour unchanged for ASCII timezone strings.Incompatible: Comet's native timezone parser only accepts IANA zone IDs (e.g. America/Los_Angeles) and fixed +HH:MM offsets, while Spark also accepts legacy forms (GMT+1, UTC+1, three-letter abbreviations like PST). By default it runs through the codegen dispatcher (Spark-correct) and uses the native path only when incompatible expressions are explicitly allowed, where legacy zone forms throw a native parse error at execution.MakeTimestamp and runs via the codegen dispatcher. The 2-argument (date, time) form requires the Spark 4.1 TIME type and falls back.MakeTimestamp and runs via the codegen dispatcher. The 2-argument (date, time) form requires the Spark 4.1 TIME type and falls back.DateType value to a fixed US-English abbreviated month name (Month.getDisplayName(TextStyle.SHORT, Locale.US)), with no session-locale or timezone dependence.current_timestamp; constant-folded to a literal by Spark's ComputeCurrentTime rule before Comet sees the plan.Cast (no format, native) or Cast(GetTimestamp(...)) (with format, via the codegen dispatcher) before Comet sees the plan.Cast (no format, native) or GetTimestamp (with format, via the codegen dispatcher) before Comet sees the plan.to_timestamp with TimestampType; same support as to_timestamp.to_timestamp with TimestampNTZType; same support as to_timestamp.inputTypes widened to StringTypeWithCollation; behaviour unchanged for ASCII timezone strings.Incompatible: Comet's native timezone parser only accepts IANA zone IDs (e.g. America/Los_Angeles) and fixed +HH:MM offsets, while Spark also accepts legacy forms (GMT+1, UTC+1, three-letter abbreviations like PST). By default it runs through the codegen dispatcher (Spark-correct) and uses the native path only when incompatible expressions are explicitly allowed, where legacy zone forms throw a native parse error at execution.MakeTimestamp(failOnError = false) and runs through the codegen dispatcher (CometMakeTimestamp), so invalid inputs return NULL to match Spark.Cast(..., EvalMode.LEGACY) (no format, native) or Cast(GetTimestamp(..., failOnError = false)) (with format, via the codegen dispatcher) before Comet sees the plan. In non-ANSI mode the rewritten tree is identical to to_date; invalid inputs return NULL to match Spark.Cast(..., EvalMode.LEGACY) (no format, native) or GetTimestamp(..., failOnError = false) (with format, via the codegen dispatcher) before Comet sees the plan. In non-ANSI mode the rewritten tree is identical to to_timestamp; invalid inputs return NULL to match Spark.