Skip to content

FILLER fileds not showing up when a Particular parent field has only FILLER with child #510

@anu17011993

Description

@anu17011993

Describe the bug

We have a scenario where the Copybook has FILLER OCCURS under a particular parent and there are child fields under FILLER OCCURS but the schema that we get after reading dataframe does not have these fields (CHILD1, CHILD2).

Copybook (if possible)

01 RECORD.
    03 PARENT2.
        05 FIELD1   PICX(65).
        05 FIELD2.
            07 FILLER OCCURS 12 TIMES.
                10 CHILD1 PIC S9(7) COMP-3.
                10 CHILD2 PIC S99V99999 COMP-3.
        05 FIELD3 PIC X.

The final schema of dataframe looks like this
|--RECORD
|--PARENT2
|--FIELD1
|--FIELD3

Now if the FILLER OCCURS 12 TIMES has any siblings with it under the same parent FIELD2 as in the below copybook then the FILLER field shows up in the dataframe. But when it does not have any siblings under the parent then the fields don't show up even if we set drop_group_fillers and drop_value_fillers option to false.

01 RECORD.
    03 PARENT2.
        05 FIELD1   PICX(65).
        05 FIELD2.
            07 FILLER OCCURS 12 TIMES.
                10 CHILD1 PIC S9(7) COMP-3.
                10 CHILD2 PIC S99V99999 COMP-3.
            07 FIELD PIC X.
        05 FIELD3 PIC X.

Metadata

Metadata

Assignees

Labels

acceptedAccepted for implementationbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions