Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-38087

Unexpected error `Unknown column '???' in 'GROUP BY'`

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.6, 12.1(EOL)
    • 10.6, 10.11, 11.4, 11.8
    • None
    • None

    Description

      Hi,

      The following test case triggers an unexpected error `Unknown column '???' in 'GROUP BY'`

      CREATE TABLE IF NOT EXISTS t0(c0 TINYTEXT, c1 DECIMAL, c2 FLOAT) ;
      INSERT HIGH_PRIORITY IGNORE INTO t0(c2) VALUES('u^%pzX');
      INSERT INTO t0(c2) VALUES(0.7674682736888384);
      SELECT DISTINCTROW MAX(TRUE) AS ref0, (( EXISTS (SELECT 1)) && (0)) AS ref1, -1 AS ref2 FROM t0 GROUP BY  ((1) && ((t0.c0) < (t0.c1))), -1;
      

      I can reproduce this in 12.0.2-MariaDB-ubu2404

      Attachments

        Activity

          People

            serg Sergei Golubchik
            ChiZhang Chi Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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