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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 6.3.1
    • Component/s: None
    • Labels:
      None

      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

              People

              Assignee:
              drrtuy Roman
              Reporter:
              gdorman Gregory Dorman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Git Integration