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

Basic text record format returns 0 records #444

Closed
yruslan opened this issue Nov 30, 2021 · 0 comments
Closed

Basic text record format returns 0 records #444

yruslan opened this issue Nov 30, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yruslan
Copy link
Collaborator

yruslan commented Nov 30, 2021

Describe the bug

The basic text record format that uses underlying Spark RDDs to split text files efficiently does not produce correct results.

To Reproduce

      val df = spark
        .read
        .format("cobol")
        .option("copybook_contents", copybook)
        .option("record_format", "D2")
        .load(path)

df.count

Returns 0.

      val df = spark
        .read
        .format("cobol")
        .option("copybook_contents", copybook)
        .option("record_format", "D")
        .load(path)

df.count

Returns a non-zero value.

Expected behaviour

The behavior should be the same for 'D' and 'D2' formats if the input file is in basic ASCII format (e.g. 7-bit English text).

@yruslan yruslan added the bug Something isn't working label Nov 30, 2021
@yruslan yruslan self-assigned this Nov 30, 2021
@yruslan yruslan closed this as completed Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant