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

min() and max() work only in the range of Integer values

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.7, 3.3.1
    • Fix Version/s: 3.2.8, 3.3.2
    • Component/s: process
    • Labels:
      None

      Description

      Following examples show the problem. The Min and Max steps are seeded with Integer.MIN_VALUE and Integer.MAX_VALUE. This is not high/low enough for long and double values.

      g.V(0).values().inject(9999999999).min()

      returns 2147483647 instead of 9999999999.

      g.V(0).values().inject(-9999999999).max()

      returns -2147483648 instead of -9999999999.

      Extremes like -Double.MAX_VALUE and Double.MAX_VALUE should solve the problem, but I see some casting issues in the MinGlobalStep, MaxGlobalStep, MinLocalStep, MaxLocalStep.

      Can anybody help with this?

        Attachments

          Activity

            People

            • Assignee:
              dkuppitz Daniel Kuppitz
              Reporter:
              rkozmer Rado Kozmer

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment