Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-814

Count(distinct c1) returns wrong results when an index-table plan is applied.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Resolution: Fixed
    • None
    • 3.1.0, 4.1.0
    • None
    • None
    • 683

    Description

      For example, we have t1 (id, name, addr) and its index table d1 (name).

      if we do "select count(distinct name) from t1" while use-index is disabled, we get the correct result.
      if we do the same query while index is enabled, we get a wrong result, which equals to "count(name)".

      Attachments

        Activity

          People

            Unassigned Unassigned
            maryannxue Wei Xue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: