Uploaded image for project: 'Marmotta'
  1. Marmotta
  2. MARMOTTA-628

Arithmetic operation in SPARQL use wrong operator precedence

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.4.0
    • Component/s: KiWi Triple Store
    • Labels:
      None

      Description

      The following query:

      SELECT ( (4.5-4.4)*0.1 as ?c )  WHERE {}

      should return 0.01, but currently gives 4.06.

      So it looks it actually does

      4.5 - 4.4 * 0.1)

      so

      4.5 - (4.4*0.1)

      where parenthesis look to be ignored/removed from the calculation.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                wikier Sergio Fernández
                Reporter:
                wikier Sergio Fernández
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4h
                  4h
                  Remaining:
                  Remaining Estimate - 4h
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified