Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6909

Invalid grouping by multiple columns when use function (Apache Derby 10.10.2.0)

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.10.2.0, 10.13.1.1
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:
    • Urgency:
      Low
    • Bug behavior facts:
      Wrong query result

      Description

      Create table TEST:

      create table TEST (name varchar(10), label varchar(10));
      insert into TEST values ('johnny', 'label_1');
      insert into TEST values ('johnny', 'label_2');

      These queries returns 2 rows 'JOHNNY':
      select upper(name) from TEST group by name, label
      select upper(name) from TEST group by upper(name), label

      When grouping is changed this way, query returns only 1 row 'JOHNNY':
      select upper(name) from TEST group by upper(name), upper(label)

        Attachments

        1. derby.log
          11 kB
          Bryan Pendleton

          Activity

            People

            • Assignee:
              induayomi Indumini Ayomi
              Reporter:
              boris.brinza@gmail.com Boris Brinza
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: