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

Allow sum() step to specify the result type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.6.7, 3.7.2
    • None
    • process
    • None

    Description

      in some cases `sum()` step do not allow to get the correct result due to overflow.
      For example `g.inject(100b,100b,100b).sum()` will lead to `ArithmeticException`.

      Good to have a way to get the result using a different type for summation, for example by providing seed, `g.inject(100b,100b,100b).sum(0L)` can produce 300L

      Attachments

        Activity

          People

            Unassigned Unassigned
            valentyn Valentyn Kahamlyk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: