Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-996

DSL queries with comparsions of many primitive types fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • trunk
    • None
    • None

    Description

      We have a test case we've added in our git fork that compares attributes with all of the various primitive types to literal values. These are very simple quries such as "Person where (salary >= 200000)" for all of the different comparison operators and data types. We just discovered that these tests were failing in the titan 0.5.4 implementation with a ClassCastException (for example, for double type, the literal was being interpreted in Gremlin as integer literal, and it could not cast it to a double to do the comparison) . We have put in a fix for this issue in our fork. This JIRA is to merge the test case as well as the code that fixes the issue into the Atlas master.

      We also discovered that GraphBackedSearchIndexer.initialize() leaves the TitanManagement transaction open when it returns early because the global indices already exist. That was fixed as well.

      Attachments

        1. ATLAS-996-final.patch
          24 kB
          Shwetha GS
        2. ATLAS-996-final.patch
          24 kB
          Shwetha GS
        3. rb49771.patch
          24 kB
          Jeffrey Hagelberg
        4. org.apache.atlas.discovery.GraphBackedDiscoveryServiceTest-output.txt
          6.36 MB
          Jeffrey Hagelberg
        5. org.apache.atlas.discovery.GraphBackedDiscoveryServiceTest.txt
          78 kB
          Jeffrey Hagelberg

        Activity

          People

            jnhagelb Jeffrey Hagelberg
            jnhagelb Jeffrey Hagelberg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: