Uploaded image for project: 'Blazegraph (by SYSTAP)'
  1. Blazegraph (by SYSTAP)
  2. BLZG-1300

SUM(DISTINCT $a) does not take DISTINCT into account

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: BLAZEGRAPH_RELEASE_1_5_3
    • Component/s: None
    • Labels:
      None

      Description

      Sample query:

      select (SUM(DISTINCT $a) as $aggr)
      { { BIND(1 as $a) }
        UNION 
        { BIND(1 as $a) }
        UNION 
        { BIND(2 as $a) }
      }
      

      expected result is 3,a actual result is 4.
      Note: AVG, COUNT, GROUP_CONCAT all work correctly

        Activity

        Hide
        michaelschmidt michaelschmidt added a comment -

        Fixed issue in branch BLZG-1300. Running CI, will merge down when CI succeeds.

        Show
        michaelschmidt michaelschmidt added a comment - Fixed issue in branch BLZG-1300 . Running CI, will merge down when CI succeeds.

          People

          • Assignee:
            michaelschmidt michaelschmidt
            Reporter:
            jjc Jeremy Carroll
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: