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

ObjectMappedTable does not delete missing fields when updating a row

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.1
    • Component/s: Datasets
    • Labels:
      None
    • Rank:
      1|hzytif:

      Description

      If I write

      {"name":"jon", "phone":"888"}

      , then overwrite that with

      {"name":"john"}

      (that is, the phone field is now null), the phone field is not deleted, and a get returns

      {"name":"john", "phone":"888"}

      .

      Most likely this is because on write, columns corresponding to null fields are not deleted.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andreas Andreas Neumann
                Reporter:
                andreas Andreas Neumann
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: