[
https://issues.apache.org/jira/browse/DRILL-7094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17249986#comment-17249986
]
ASF GitHub Bot commented on DRILL-7094:
---------------------------------------
vvysotskyi commented on a change in pull request #2128:
URL: https://github.com/apache/drill/pull/2128#discussion_r543733009
##########
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:
Drill has VarDecimal data type, please use it instead of double.
----------------------------------------------------------------
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:
[email protected]
> UnSupported Bson type: DECIMAL128 Mongodb 3.6 onwards
> -----------------------------------------------------
>
> Key: DRILL-7094
> URL: https://issues.apache.org/jira/browse/DRILL-7094
> Project: Apache Drill
> Issue Type: Bug
> Components: Storage - MongoDB
> Affects Versions: 1.15.0
> Reporter: Binod Sarkar
> Priority: Major
> Fix For: 1.19.0
>
>
> DECIMAL128 not working with Mongodb 3.6 onwards. Showing same errorĀ *Error:
> INTERNAL_ERROR ERROR: UnSupported Bson type: DECIMAL128*
--
This message was sent by Atlassian Jira
(v8.3.4#803005)