Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-3492

Not evaluating next tuple in case of skip while column filtering

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.9.10
    • 0.9.10
    • STO - Storage

    Description

      We are not evaluating the next tuple in case of skipping a tuple while column filtering, leading to inaccurate results.

      Test Case:

      
       DROP DATAVERSE test IF EXISTS;
       CREATE DATAVERSE test;
      
       USE test;
      
       CREATE DATASET ColumnDataset
       PRIMARY KEY (uid:int) WITH {
           "storage-format": {"format": "column"}
       };
      
      
      
       USE test;
      UPSERT INTO ColumnDataset(
          {"uid": 1, "a": [{"x": "aaaaaaaaaazzzz"}, {"x": "aaaaaaaaaaabzzzz"}, {"x": "aaaaaaaaaaaaabzzzzzzzz"}]},
          {"uid": 2, "a": [{"x": "aaaaaaaaaazzzz"}, {"x": "aaaaaaaaaaabzzzz"}, {"x": "aaaaaaaaaaaaabzzzzzzzz"}]}
      );
      
      
      
      USE test; 
      DELETE FROM ColumnDataset WHERE uid = 1;

       

       USE test;
       SELECT VALUE a.x
       FROM ColumnDataset c, c.a a
       WHERE a.x = "aaaaaaaaaaaaabzzzzzzzz"; 

       

      gives no result, but should give one output.

       

      Attachments

        Activity

          People

            ritik.raj Ritik Raj
            ritik.raj Ritik Raj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: