Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2891

Inconsistent behavior when comparing a counted value with a negative value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.5.5
    • 3.7.0, 3.6.3, 3.5.6
    • process
    • None

    Description

      I compare a value that should be greater than or equal to 0 with a negative value. 

      gremlin> :> g.V().where(__.in().count().is(eq(-3)))
      Not a legal range: [0, -2]
      gremlin> :> g.V().where(__.in().count().is(eq(-2)))

      I find that Tinkergraph throws an exception when comparing negative values less than -2, but does nothing when comparing with  -2.

      I'm curious why they behave differently. 

       

      Attachments

        Activity

          People

            valentyn Valentyn Kahamlyk
            tangle DBuser
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: