Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-4784

IndexedTable's index is inappropriately removed when adding new columns to the same row.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.3.0, 3.2.0
    • Fix Version/s: 3.3.1
    • Component/s: CDAP, Datasets
    • Labels:
    • Release Notes:
      IndexedTable no longer drops indices upon row updates.
    • Rank:
      1|hzz5xj:

      Description

      I am able to reproduce this issue consistently in a distributed CDAP, but not at all able to reproduce it in SDK.

      1) Have an IndexedTable and index on column 'c'.
      2) Write a row with key 'key1', column 'c', and value 'v'
      3) IndexedTable#readByIndex('v') will return the recently written row, as expected
      4) Write another column (for example 'd') to the same row 'key1'). This other column must not be one of the indexed columns.
      5) Step 3 should still work, but it doesn't. IndexedTable#readByIndex('v') returns zero rows.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ali.anwar Ali Anwar
                Reporter:
                ali.anwar Ali Anwar
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: