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

Add 'record_bytes' field that contains raw data of each input record #593

Closed
yruslan opened this issue Mar 23, 2023 · 3 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@yruslan
Copy link
Collaborator

yruslan commented Mar 23, 2023

Background

Original record bytes used for decoding its fields is useful for validation and audit, as well as writing filtered data back to EBCDIC format.

Feature

Add the ability to generate 'reaord_bytes' field that contains raw bytes of the decoded record.

Example

.option("generate_record_bytes", "true")
@yruslan yruslan added the enhancement New feature or request label Mar 23, 2023
@yruslan yruslan self-assigned this Mar 23, 2023
yruslan added a commit that referenced this issue Mar 28, 2023
yruslan added a commit that referenced this issue Mar 28, 2023
yruslan added a commit that referenced this issue Mar 30, 2023
@yruslan yruslan closed this as completed Apr 17, 2023
@sfuenteRoot
Copy link

We are migrating an ETL process from DataStage to scala using your libraries. The file has fields that are handled as "Raw" and converted with the iconv function to hexadecimal. But we are losing bits and we cannot solve it. They are fields that have packaged bits inside.
image

We read them as follows
.withColumn("field", hex(col("field")))

@yruslan
Copy link
Collaborator Author

yruslan commented May 30, 2023

Is this feature request relevant to the topic? #624

Please, create a separate issue for the issue you are having and please provide more context.

What do you mean by losing bits. Could you please provide an example?

@sfuenteRoot
Copy link

Sorry, We create the issue #627.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants