Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18802

Incorrect results when referencing same Accumulo table multiple times in one query

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      While investigatingĀ HIVE-18695, I noticed incorrect results returned by the following Accumulo query:

      DROP TABLE accumulo_test;
      CREATE TABLE accumulo_test(key int, value int)
      STORED BY 'org.apache.hadoop.hive.accumulo.AccumuloStorageHandler'
      WITH SERDEPROPERTIES ("accumulo.columns.mapping" = ":rowID,cf:string")
      TBLPROPERTIES ("accumulo.table.name" = "accumulo_table_0");
      
      INSERT OVERWRITE TABLE accumulo_test VALUES (0,0), (1,1), (2,2), (3,3);
      
      SELECT * from accumulo_test where key == 1 union all select * from accumulo_test where key == 2;

      The expected output is

      1 1
      2 2

      but the actual output is

      1  0
      1  1
      1  2
      1  3
      2  0
      2  1
      2  2
      2  3
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                erwaman Anthony Hsu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: