Skip to content

Commit bb2fdac

Browse files
authored
Merge pull request #182 from Kotlin/biginteger
Added BigInteger support
2 parents c52eefe + 6d932ec commit bb2fdac

File tree

1 file changed

+2
-0
lines changed
  • kotlin-spark-api/src/main/kotlin/org/jetbrains/kotlinx/spark/api

1 file changed

+2
-0
lines changed

kotlin-spark-api/src/main/kotlin/org/jetbrains/kotlinx/spark/api/Encoding.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import scala.Product
3939
import scala.reflect.ClassTag
4040
import java.beans.PropertyDescriptor
4141
import java.math.BigDecimal
42+
import java.math.BigInteger
4243
import java.sql.Date
4344
import java.sql.Timestamp
4445
import java.time.*
@@ -119,6 +120,7 @@ private val knownDataTypes: Map<KClass<out Any>, DataType> = mapOf(
119120
ByteArray::class to DataTypes.BinaryType,
120121
Decimal::class to DecimalType.SYSTEM_DEFAULT(),
121122
BigDecimal::class to DecimalType.SYSTEM_DEFAULT(),
123+
BigInteger::class to DecimalType.SYSTEM_DEFAULT(),
122124
CalendarInterval::class to DataTypes.CalendarIntervalType,
123125
)
124126

0 commit comments

Comments
 (0)