Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-4380

ODatat 4 deep insert works for only a single expand

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.1, 8.12.11.6_4
    • None
    • OData
    • None

      Inserting an entity with a graph more complicated than a single expand won't work as expected - in most cases an exception will be thrown after the inserts are performed / committed.

            [TEIID-4380] ODatat 4 deep insert works for only a single expand

            Steven Hawkins added a comment - - edited

            mkosiarc@redhat.com The resolution of this issue was to throw an exception if more than one expand was used. The title was not updated to reflect that it did not test/address anything with the number of levels. I've updated the title. A new issue would be needed if you find a problem with the number of expansion levels.

            Steven Hawkins added a comment - - edited mkosiarc@redhat.com The resolution of this issue was to throw an exception if more than one expand was used. The title was not updated to reflect that it did not test/address anything with the number of levels. I've updated the title. A new issue would be needed if you find a problem with the number of expansion levels.

            rhn-engineering-shawkins To which level should the expand in insert work?
            I am trying to insert the following entity:

             { "employee_id":1,
               "name": "President",
               "manager_id":1,
               "Employee_FK0": [
                                {"employee_id" : 2,
                                 "name": "Vice-President",
                                 "manager_id" : 1,
                                 "Employee_FK0": 
                                               [
                                                 {"employee_id" : 3,
                                                  "name": "Manager",
                                                  "manager_id" : 2
                                                 }
                                               ]
                                }
                               ]
                   
             }
            
            

            And it gives me the following error: Employee_FKO can not be mapped as a property or an annotation.

            Maximilian Kosiarcik added a comment - rhn-engineering-shawkins To which level should the expand in insert work? I am trying to insert the following entity: { "employee_id" :1, "name" : "President" , "manager_id" :1, "Employee_FK0" : [ { "employee_id" : 2, "name" : "Vice-President" , "manager_id" : 1, "Employee_FK0" : [ { "employee_id" : 3, "name" : "Manager" , "manager_id" : 2 } ] } ] } And it gives me the following error: Employee_FKO can not be mapped as a property or an annotation.

            Van Halbert <vhalbert@redhat.com> changed the Status of bug 1506562 from NEW to ON_QA

            RH Bugzilla Integration added a comment - Van Halbert <vhalbert@redhat.com> changed the Status of bug 1506562 from NEW to ON_QA

            Addressing as separate from the feature of TEIID-4100 so that this can be backported if needed.

            Steven Hawkins added a comment - Addressing as separate from the feature of TEIID-4100 so that this can be backported if needed.

              rhn-engineering-shawkins Steven Hawkins
              rhn-engineering-shawkins Steven Hawkins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: