package variant
- Alphabetic
- Public
- Protected
Type Members
- case class ArrayExtraction(index: Int) extends VariantPathSegment with Product with Serializable
- case class IsVariantNull(child: Expression) extends UnaryExpression with Predicate with ExpectsInputTypes with RuntimeReplaceable with Product with Serializable
- Annotations
- @ExpressionDescription()
- case class ObjectExtraction(key: String) extends VariantPathSegment with Product with Serializable
- case class ParseJson(child: Expression, failOnError: Boolean = true) extends UnaryExpression with ExpectsInputTypes with RuntimeReplaceable with Product with Serializable
The implementation for
parse_jsonandtry_parse_jsonexpressions.The implementation for
parse_jsonandtry_parse_jsonexpressions. Parse a JSON string as a Variant value.- child
The string value to parse as a variant.
- failOnError
Controls whether the expression should throw an exception or return null if the string does not represent a valid JSON value.
- abstract class ParseJsonExpressionBuilderBase extends ExpressionBuilder
- case class SchemaOfVariant(child: Expression) extends UnaryExpression with RuntimeReplaceable with DefaultStringProducingExpression with ExpectsInputTypes with Product with Serializable
- Annotations
- @ExpressionDescription()
- case class SchemaOfVariantAgg(child: Expression, mutableAggBufferOffset: Int, inputAggBufferOffset: Int) extends TypedImperativeAggregate[DataType] with ExpectsInputTypes with QueryErrorsBase with DefaultStringProducingExpression with UnaryLike[Expression] with Product with Serializable
- Annotations
- @ExpressionDescription()
- case class ToVariantObject(child: Expression) extends UnaryExpression with QueryErrorsBase with Product with Serializable
- Annotations
- @ExpressionDescription()
- case class VariantCastArgs(failOnError: Boolean, zoneStr: Option[String], zoneId: ZoneId) extends Product with Serializable
- case class VariantExplode(child: Expression) extends UnaryExpression with Generator with ExpectsInputTypes with Product with Serializable
- trait VariantExplodeGeneratorBuilderBase extends GeneratorBuilder
- case class VariantGet(child: Expression, path: Expression, targetType: DataType, failOnError: Boolean, timeZoneId: Option[String] = None) extends BinaryExpression with TimeZoneAwareExpression with ExpectsInputTypes with QueryErrorsBase with Product with Serializable
The implementation for
variant_getandtry_variant_getexpressions.The implementation for
variant_getandtry_variant_getexpressions. Extracts a sub-variant value according to a path and cast it into a concrete data type.- child
The source variant value to extract from.
- path
A literal path expression. It has the same format as the JSON path.
- targetType
The target data type to cast into. Any non-nullable annotations are ignored.
- failOnError
Controls whether the expression should throw an exception or return null if the cast fails.
- timeZoneId
A string identifier of a time zone. It is required by timestamp-related casts.
- abstract class VariantGetExpressionBuilderBase extends ExpressionBuilder
- sealed abstract class VariantPathSegment extends Serializable
Value Members
- object ParseJsonExpressionBuilder extends ParseJsonExpressionBuilderBase
- Annotations
- @ExpressionDescription()
- object SchemaOfVariant extends Serializable
- object TryParseJsonExpressionBuilder extends ParseJsonExpressionBuilderBase
- Annotations
- @ExpressionDescription()
- object TryVariantGetExpressionBuilder extends VariantGetExpressionBuilderBase
- Annotations
- @ExpressionDescription()
- object VariantExplode extends Serializable
- object VariantExplodeGeneratorBuilder extends VariantExplodeGeneratorBuilderBase
- Annotations
- @ExpressionDescription()
- object VariantExplodeOuterGeneratorBuilder extends VariantExplodeGeneratorBuilderBase
- Annotations
- @ExpressionDescription()
- object VariantExpressionEvalUtils
A utility class for constructing variant expressions.
- case object VariantGet extends Product with Serializable
- object VariantGetExpressionBuilder extends VariantGetExpressionBuilderBase
- Annotations
- @ExpressionDescription()
- object VariantPathParser extends RegexParsers