LiteralValueProtoConverter

org.apache.spark.sql.connect.common.LiteralValueProtoConverter

Converts spark.connect.Expression.Literal messages (e.g. observed metrics reported by the server) into client-side values and types. Values use the same JVM representation as rows decoded from Arrow results: java.time types for dates and timestamps, java.math.BigDecimal for decimals, Seq / Map / Row for arrays, maps, and structs.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def dataTypeOf(literal: Literal): DataType

The Spark type of literal, from its explicit data type when it has one.

The Spark type of literal, from its explicit data type when it has one.

Attributes

def toScalaValue(literal: Literal): Any

The client-side value of literal (null for a NULL literal).

The client-side value of literal (null for a NULL literal).

Attributes