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

aggregate query with ORDER BY ordinal hits internal error "column is not found in info map"

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      Reproduced locally on MariaDB Columnstore 25.10.4 (stable-23.10).

      A simple aggregate query with ordinal ORDER BY returns an internal error:

      ERROR 1815 (HY000): Internal error: column is not found in info map.

      Reproducer

      CREATE DATABASE IF NOT EXISTS cs_repro;
      USE cs_repro;
       
      DROP TABLE IF EXISTS orders;
      CREATE TABLE orders (o_custkey INT, o_orderstatus CHAR(1)) ENGINE=Columnstore;
      INSERT INTO orders VALUES (10,'F'),(20,'O'),(10,'P'),(30,'F'),(20,'O'),(40,'P');
       
      SELECT COUNT(o_orderstatus), o_orderstatus
      FROM orders
      ORDER BY 1, 2 DESC;

      Expected

      Under default MariaDB semantics without ONLY_FULL_GROUP_BY, the query is accepted and should not fail with an internal engine error.

      Actual

      Columnstore returns:

      ERROR 1815 (HY000): Internal error: column is not found in info map.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              abukhalov Aleksei Bukhalov
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.