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

Projections from local indexes return garbage.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 4.15.0, 5.1.0
    • None
    • None

    Description

      Script:

      $ CREATE TABLE test (pk INTEGER PRIMARY KEY, v INTEGER);
      $ CREATE LOCAL INDEX l1 on test(v);
      $ UPSERT INTO tests VALUES(1,1);
      
      $ SELECT * FROM test;
      +--------------+-------+
      |      PK      |   V   |
      +--------------+-------+
      | -2147483648  | null  |
      +--------------+-------+
      
      $ SELECT /*+ NO_INDEX */ * FROM test;
      +-----+----+
      | PK  | V  |
      +-----+----+
      | 1   | 1  |
      +-----+----+
      
      $ SELECT v FROM test WHERE v < 2;
      +-------+
      |   V   |
      +-------+
      | null  |
      +-------+
      
      $ SELECT /*+ NO_INDEX */ v FROM tests WHERE v < 2;
      +----+
      | V  |
      +----+
      | 1  |
      +----+
      
      

       
      Something is seriously broken.
      Seems only when I build/run against latest HBase 1.5.0 SNAPSHOT. (not the one released to Maven)

      apurtell, just FYI

      Attachments

        1. 5486-test.txt
          1 kB
          Lars Hofhansl
        2. 5486-fix.txt
          11 kB
          Lars Hofhansl
        3. 5486-4.x-hbase-1.5.txt
          11 kB
          Lars Hofhansl
        4. 5486-v2-4.x-HBase-1.5.txt
          25 kB
          Lars Hofhansl
        5. 5486-v3-4.x-HBase-1.5.txt
          23 kB
          Lars Hofhansl
        6. 5486-v4-4.x-HBase-1.5.txt
          2 kB
          Lars Hofhansl
        7. 5486-v5-4.x-HBase-1.5.txt
          3 kB
          Lars Hofhansl

        Issue Links

          Activity

            People

              larsh Lars Hofhansl
              larsh Lars Hofhansl
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: