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.
CreateNamedStruct(children) with NoThrow; children is Seq(name1, val1, name2, val2, ...). Names must be foldable StringType and distinct; non-null. dataType is the StructType of the resulting fields. Comet routes via CometCreateNamedStruct, builds a CreateNamedStruct proto, and the native CreateNamedStruct expression (in native/spark-expr/src/struct_funcs/create_named_struct.rs) emits a StructArray.override def stateful: Boolean = true flag is added for the optimizer. Parser-level Alias unwrapping (case (a: Alias, _) => Seq(Literal(a.name), a)) is transparent to Comet.override def contextIndependentFoldable: Boolean = children.forall(_.contextIndependentFoldable) for the new constant-folding pass; no impact on Comet conversion.CreateNamedStruct whose names contain duplicates falls back to Spark. (Spark's analyzer also tolerates duplicates at the column-name level, but the proto layer would lose them, so the fallback is the safe choice.)struct(a, b, c) is built by CreateStruct.create, which lowers to a CreateNamedStruct with synthetic field names col1, col2, etc. Comet handles both struct and named_struct via the same CometCreateNamedStruct path; the synthetic-name and explicit-name cases behave identically.