Dmitry Sysolyatin created CALCITE-6623:
------------------------------------------
Summary: 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
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)