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

Record length option is ignored when generate record id is turued on #659

Closed
yruslan opened this issue Mar 18, 2024 · 0 comments · Fixed by #660
Closed

Record length option is ignored when generate record id is turued on #659

yruslan opened this issue Mar 18, 2024 · 0 comments · Fixed by #660
Labels
bug Something isn't working

Comments

@yruslan
Copy link
Collaborator

yruslan commented Mar 18, 2024

Describe the bug

A fixed length file with record size that does not match the copybook can be read using

.option("record_length", 100)

But when this options is combined with

.option("generate_record_id", true)

the record size option is seems to be ignored.

Code snippet that caused the issue

  spark.read
   .format("cobol")
   .option("record_length", 100)
   .option("generate_record_id", true)

Expected behavior

These options should work well in combination

Context

  • Cobrix version: 2.6.10
  • Spark version: 2.4.4
  • Scala version: 2.11

Copybook (if possible)

--

Attach a small data file that can help reproduce the issue, if possible.

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

Successfully merging a pull request may close this issue.

1 participant