You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2020/12/16 09:13:04 UTC

[GitHub] [drill] rajeshguptaiiitm commented on a change in pull request #2128: DRILL-7094: UnSupported Bson type: DECIMAL128 Mongodb 3.6 onwards

rajeshguptaiiitm commented on a change in pull request #2128:
URL: https://github.com/apache/drill/pull/2128#discussion_r544132033



##########
File path: exec/java-exec/src/main/java/org/apache/drill/exec/store/bson/BsonRecordReader.java
##########
@@ -178,6 +178,11 @@ private void writeToListOrMap(BsonReader reader, final MapOrListWriterImpl write
         writeTimeStamp(time, writer, fieldName, isList);
         atLeastOneWrite = true;
         break;
+      case DECIMAL128:
+        double readDoubleAsDecimal128 = reader.readDecimal128().doubleValue();
+        writeDouble(readDoubleAsDecimal128, writer, fieldName, isList);

Review comment:
       Resovle it




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org