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

Salted global indexes do not work for queries with uncovered columns

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.1.4
    • None
    • None

    Description

      With an index hint, global indexes can be used for queries with uncovered columns. However, when the data table is salted, Phoenix does not project the columns correctly for queries with uncovered columns, and thus the result set returns wrong columns. For example, the following select statement returns 'b' instead of 'bcde'.

       

      create table T1 (id varchar not null primary key, val1 varchar, val2 varchar, val3 varchar) SALT_BUCKETS=4;
      upsert into T1 values ('b', 'bc', 'bcd', 'bcde');
      create index I1 on T1 (val1) include (val2);
      select /*+ INDEX(T1 I1)*/ val3 from T1 WHERE val1 = 'bc';
      

       

      Attachments

        Issue Links

          Activity

            People

              tkhurana Tanuj Khurana
              kadir Kadir Ozdemir
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: