Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-6623

MongoDB adapter throws a java.lang.ClassCastException when Decimal128 or Binary types are used, or when a primitive value is cast to a string

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              dmsysolyatin Dmitry Sysolyatin
              dmsysolyatin Dmitry Sysolyatin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: