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

Bug in ARecordVisitablePointable (open records)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • TYPE - Data Model
    • None

    Description

      Symptom:
      When adding a closed record type to an open field (expanded) the value of the field ends up being empty ({ }).

      Possible Cause:
      ARecordVisitablePointable, line 257. Here we try to allocated a value of type specified by a TypeTag. However, if the type is RECORD, it will always create an empty open ARecordType, which is fine. But, when one tries to set the value of the field in line 258 (which now calls ARecordVisitablePointable.set method again) the result will be an empty value since the value neither is expanded (because it is closed) nor providing any schema fields (because of the empty record allocation).

      Attachments

        Activity

          People

            heriram Heri Ramampiaro
            heriram Heri Ramampiaro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: