Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3832

Local Index - Empty resultset for multi-tenant tables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.10.0
    • 4.11.0
    • None

    Description

      Schema

      CREATE TABLE IF NOT EXISTS T (PKA CHAR(15) NOT NULL, PKF CHAR(3) NOT NULL,
       PKP CHAR(15) NOT NULL, CRD DATE NOT NULL, EHI CHAR(15) NOT NULL, STD_COL VARCHAR, INDEXED_COL INTEGER,
       CONSTRAINT PK PRIMARY KEY ( PKA, PKF, PKP, CRD DESC, EHI)) 
       VERSIONS=1,MULTI_TENANT=true,IMMUTABLE_ROWS=true;
      
      CREATE LOCAL INDEX IF NOT EXISTS TIDX ON T (INDEXED_COL);
      

      Query

      SELECT * FROM T WHERE INDEXED_COL < 1
      

      Resultset is empty for all columns other than PK and indexed column. This is on a single region table.

      Attachments

        1. PHOENIX-3832.patch
          3 kB
          James R. Taylor

        Issue Links

          Activity

            People

              jamestaylor James R. Taylor
              mujtabachohan Mujtaba Chohan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: