Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-817

SUM(?a) {empty} is error but SUM( DISTINCT?a) {empty} is value zero.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 2.12.1
    • Jena 2.13.0
    • ARQ
    • None

    Description

      They can't both be right!

      The fix is to make sum(empty) zero. Looks like the code use to do that but was left is a debugging state.

      In SQL, sum(empty) is NULL.

      In SPARQL 1.1, sec 18.5.1.3:
      Sum(S) = "0"^^xsd:integer when card[S] = 0
      so it is zero.

      Attachments

        Activity

          People

            andy Andy Seaborne
            andy Andy Seaborne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: