You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue tracks coverage of Spark types by doric. For each Spark type, doric must allow us:
To create a doric column of the corresponding Scala type
To collect Scala values from fields of Rows
To create doric columns of the corresponding Scala type from literal values
The underlying Spark data type assigned by doric for a given Scala type T should be the data type resolved by Spark's schemaFor[T]`. This data type will be determined statically by doric (through implicits), unlike the reflective approach followed by Spark.
This issue tracks coverage of Spark types by doric. For each Spark type, doric must allow us:
Row
sThe underlying Spark data type assigned by doric for a given Scala type
T
should be the data type resolved by Spark'sschemaFor[T]
`. This data type will be determined statically by doric (through implicits), unlike the reflective approach followed by Spark.List of types (as of Spark 3.2.1):
Null type
NullType
Null
Numeric types
IntegerType
Int
java.lang.Integer
LongType
Long
java.lang.Long
FloatType
Float
java.lang.Float
DoubleType
Double
java.lang.Double
ShortType
Short
java.lang.Short
ByteType
Byte
java.lang.Byte
DecimalType
Decimal
BigDecimal
java.math.BigDecimal
java.math.BigInteger
scala.math.BigInt
String types
StringType
String
Enumeration#Value
java.lang.Enum[_]
Binary type
BinaryType
Array[Byte]
Boolean type
BooleanType
Boolean
java.lang.Boolean
Datetime type
DateType
java.sql.Date
java.time.LocalDate
TimestampType
java.sql.Timestamp
java.time.Instant
CalendarIntervalType
org.apache.spark.unsafe.types.CalendarInterval
Interval type
DayTimeIntervalType
java.time.Duration
YearMonthIntervalType
java.time.Period
Array type
ArrayType
Array[_]
Seq[_]
Set[_]
Map type
MapType
Map[_, _]
Option types
T
Option[T]
Struct types
StructType
Product
(standard or user-defined case classes, in particular)Row
User-defined types
SQLUserDefinedType
The text was updated successfully, but these errors were encountered: