json_funcs Expression Audits#
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.
from_json#
Partial native support, marked
Incompatible(requires explicit schema).
get_json_object#
Spark 3.4.3 (audited 2026-05-27): identical to 3.5.8.
Spark 3.5.8 (audited 2026-05-27): baseline.
BinaryExpression with ExpectsInputTypes with CodegenFallback;inputTypes = Seq(StringType, StringType) -> StringType. Eval is inline and uses Jackson withRawStyleoutput. Foldable paths are parsed once. Returns NULL for invalid JSON, missing paths, orJsonProcessingException.Spark 4.0.1 (audited 2026-05-27): the eval is extracted into a
GetJsonObjectEvaluatorhelper (no behaviour change). The trait set now mixes inDefaultStringProducingExpression, andinputTypesis widened toStringTypeWithCollation(supportsTrimCollation = true)for both arguments.Spark 4.1.1 (audited 2026-05-27): identical to 4.0.1.
Known incompatibility: Spark accepts single-quoted JSON and unescaped control characters; Comet’s native parser (built on
serde_json) rejects both, so those inputs requirespark.comet.expression.GetJsonObject.allowIncompatible=trueand may still produce different results. Non-default Spark 4.0 string collations are not propagated (https://github.com/apache/datafusion-comet/issues/2190).
to_json#
Partial native support; options and map/array inputs fall back.