Skip to content

Empty line at the end causes cobrix to create 1 more record #397

@MaksymFedorchuk

Description

@MaksymFedorchuk

For example we have file like this with empty line at the end :
fdhfhdsfsdff
dfdhjfwdsdd
dsfddkkfkgk

And if I read it by specifying
spark.read
.format("cobol")
.option("is_record_sequence", "true")
.option("is_text", "true")
.option("encoding", "ascii")
.option("copybook", path_to_copybook)
.load(path_to_file)

I get 4 records instead of 3, so is that a bug or it can be fixed by some option?

Metadata

Metadata

Assignees

No one assigned

    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