[ 
https://issues.apache.org/jira/browse/CALCITE-6623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry Sysolyatin resolved CALCITE-6623.
----------------------------------------
    Fix Version/s: 1.39.0
       Resolution: Fixed

Fixed in 
[541c9fb|https://github.com/apache/calcite/commit/541c9fb0b4d918f8de9b35ca0db60529c03828c2].
 Thanks for review [~mbudiu]!

> MongoDB adapter throws a java.lang.ClassCastException when Decimal128 or 
> Binary types are used, or when a primitive value is cast to a string
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CALCITE-6623
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6623
>             Project: Calcite
>          Issue Type: Bug
>          Components: mongodb-adapter
>    Affects Versions: 1.37.0
>            Reporter: Dmitry Sysolyatin
>            Assignee: Dmitry Sysolyatin
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.39.0
>
>
> At the moment, the MongoDB adapter throws a java.lang.ClassCastException when 
> Decimal128 or Binary types are used, or when a primitive value is cast to a 
> string.
> Additionally, the ClassCastException error is not meaningful. It would be 
> better to throw a custom exception within the convert function if it is 
> impossible to convert an object to the Calcite runtime type.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to