Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
anu17011993 opened this issue Aug 5, 2022 · 3 comments · Fixed by #511
Closed
Assignees
Labels
accepted Accepted for implementation bug Something isn't working

Comments

@anu17011993
Copy link

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.
@anu17011993 anu17011993 added the bug Something isn't working label Aug 5, 2022
@yruslan yruslan added the accepted Accepted for implementation label Aug 8, 2022
@yruslan yruslan self-assigned this Aug 8, 2022
@yruslan
Copy link
Collaborator

yruslan commented Aug 8, 2022

Thanks for the report. Will check.
As a workaround for now you can rename the FILLER to, say, FILLER1.

@anu17011993
Copy link
Author

Thanks @yruslan

@yruslan
Copy link
Collaborator

yruslan commented Aug 9, 2022

This should be fixed in master. You can try it now by compiling it from the source or wait for the new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Accepted for implementation bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants