Skip to content

SparkUtils.flattenSchema method throws null pointer exception #466

@ghost

Description

Describe the bug

SparkUtils.flattenSchema method throws NPE for the empty data frame having occurs or schema contains arrays

To Reproduce

create a data frame from empty data file and copybook with occurs and flatten the schema with SparkUtils.flattenSchema method

Expected behaviour

It should return the flatten the schema with zero records as it's empty dataset

Screenshots

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions