Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-4637

select * into file from (select ... group by) produces spurious error

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • None
    • 23.10.2
    • None
    • None
    • 2024-1

    Description

      drop table if exists `C2`;
      CREATE TABLE `C2` (
      `intc` int(6) DEFAULT NULL,
      `id` int(11) NOT NULL,
      `mm_prezzo` decimal(12,0) DEFAULT NULL
      ) ENGINE=Columnstore DEFAULT CHARSET=utf8;

      select * into outfile '/tmp/result.dml' from (SELECT id,intc FROM C2 WHERE intc IN (201909) GROUP BY id,intc) as sel1;
      ERROR 1815 (HY000): Internal error: IDB-2021: 'intc' is not in GROUP BY clause. All non-aggregate columns in the SELECT and ORDER BY clause must be included in the GROUP BY clause.

      Attachments

        Issue Links

          Activity

            denis0x0D Denis Khalikov (Inactive) added a comment - - edited

            It's seems like it was fixed by some other pr as well.
            Cannot reproduce it on recent develop.

            MariaDB [temp]> select * into outfile '/tmp/result.dml' from (SELECT id,intc FROM C2 WHERE intc IN (201909) GROUP BY id,intc) as sel1;
            Query OK, 0 rows affected (0.068 sec)
             
            MariaDB [temp]> 
            

            Also verified on stable-23.10

            denis0x0D Denis Khalikov (Inactive) added a comment - - edited It's seems like it was fixed by some other pr as well. Cannot reproduce it on recent develop. MariaDB [ temp ]> select * into outfile '/tmp/result.dml' from ( SELECT id,intc FROM C2 WHERE intc IN (201909) GROUP BY id,intc) as sel1; Query OK, 0 rows affected (0.068 sec)   MariaDB [ temp ]> Also verified on stable-23.10

            checked in develop/rl8-build-fix from 05 April 2024

            kirill.perov@mariadb.com Kirill Perov (Inactive) added a comment - checked in develop/rl8-build-fix from 05 April 2024

            People

              denis0x0D Denis Khalikov (Inactive)
              gdorman Gregory Dorman (Inactive)
              Kirill Perov Kirill Perov (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.