Skip to content

Commit f8add6e

Browse files
author
Nathan Howell
committed
Add comments on lack of support for precision and scale DecimalTypes
1 parent fa0be47 commit f8add6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sql/core/src/main/scala/org/apache/spark/sql/json/JsonRDD2.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ private[sql] object JsonRDD2 extends Logging {
238238
parser.getDoubleValue
239239

240240
case (VALUE_NUMBER_INT | VALUE_NUMBER_FLOAT, DecimalType()) =>
241+
// TODO: add fixed precision and scale handling
241242
Decimal(parser.getDecimalValue)
242243

243244
case (VALUE_NUMBER_INT, ByteType) =>

0 commit comments

Comments
 (0)