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

ObjectMappedTable incorrectly handles order of fields

    XMLWordPrintableJSON

    Details

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

      Description

      I have a class Contact that has fields: name, address, phone.
      If I store an object that has only the name, such as

      {"name": "jon"}

      ,
      and then retrieve that object, I get back an object that has only address, such as

      {"address": "jon"}

      .

      Two possible explanations:

      • ObjectMappedTable somehow mixes up the order of fields, or
      • ObjectMappedTable somehow does not skip null fields when reading

        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: