Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-17453

Calcite Engine: ORDER BY Optimization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 2.13
    • 2.14
    • sql
    • None
    • Change resolution to duplicate
    • Docs Required, Release Notes Required

    Description

      1.start a node;

      2.create table:
      CREATE TABLE PI_COM_DAY
      (COM_ID VARCHAR(30) NOT NULL ,
      ITEM_ID VARCHAR(30) NOT NULL ,
      DATE1 VARCHAR(8) NOT NULL ,
      KIND VARCHAR(1),
      QTY_IOD DECIMAL(18, 6) ,
      AMT_IOD DECIMAL(18, 6) ,
      PRIMARYKEY (COM_ID,ITEM_ID,DATE1)) WITH"template=partitioned,CACHE_NAME=PI_COM_DAY";

      CREATE INDEX IDX_PI_COM_DAY_ITEM_DATE ON PI_COM_DAY(ITEM_ID);
       
      3.insert some data, for example, 1m;
      4.execute sql:
      select * from pi_com_day order by item_id desc limit 10;
      normal.
      select /+ QUERY_ENGINE('calcite') */  from pi_com_day order by item_id desc limit 10;
      then OOM.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              liyuj YuJue Li
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: