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

Rows deleted count for client side deletes is incorrect for immutable tables with indexes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.1.0, 4.16.0
    • None
    • None

    Description

      For immutable tables if the best query plan for delete uses the data table and it has an index, the rows deleted count reported is  #(rows updated)/#(tables updated)  where # of rows updated only includes data table rows but the number of tables includes data + index. This reduces the row count than the actual rows deleted count.

      The same problem can also happen if the best query plan uses the index table and there are more than one index present on the data table. In this case the rows updated will include both data table and the index table (one used by the query plan) but because there are other indexes also present the #(tables updated) will be more and we will get an inaccurate result.

      Attachments

        1. PHOENIX-6218-master.v1.patch
          16 kB
          Tanuj Khurana

        Issue Links

          Activity

            People

              tkhurana Tanuj Khurana
              tkhurana Tanuj Khurana
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: