Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-1822 Search Query Builder and Faceted Search in Atlas
  3. ATLAS-2008

basic-search: numeric tag-attribute filtering fails with java.lang.ClassCastException

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.1, 1.0.0
    • Fix Version/s: 0.8.1, 1.0.0
    • Component/s: atlas-core
    • Labels:
      None

      Description

      When tag-attribute filter includes attributes of numeric types (int, double, float), Gremlin queries fail due to ClassCastException:

      2017-07-29 07:58:15,868 DEBUG - [pool-1-thread-9 - e81686ab-44b5-403a-94e2-cf2a342806c6:] ~ gremlinTagFilterQuery=g.V().has('__guid', T.in, guids).has('__traitNames', T.in, traitNames).as('e').out().has('__typeName', T.in, typeNames).has('tag4.attr4-double', T.gte, 6).back('e').toList() (ClassificationSearchProcessor:119)
      ...
      2017-07-29 07:58:16,189 WARN  - [pool-1-thread-9 - e81686ab-44b5-403a-94e2-cf2a342806c6:] ~ javax.script.ScriptException: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Double (ClassificationSearchProcessor:260)
      

        Attachments

        1. ATLAS-2008.patch
          28 kB
          Madhan Neethiraj

          Activity

            People

            • Assignee:
              madhan Madhan Neethiraj
              Reporter:
              madhan Madhan Neethiraj
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: