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

DataFrame with some columns in EBCDIC #690

Open
sfuenteRoot opened this issue Jul 4, 2024 · 1 comment
Open

DataFrame with some columns in EBCDIC #690

sfuenteRoot opened this issue Jul 4, 2024 · 1 comment
Labels
question Further information is requested

Comments

@sfuenteRoot
Copy link

I have this code:

val df = spark
.read
.format("za.co.absa.cobrix.spark.cobol.source")
.option("ebcdic_code_page", "common_extended")
.option("copybook", copybook)
.load("ruta"
.select("Campo")

but get this error:

za.co.absa.cobrix.cobol.parser.encoding.EBCDIC$ cannot be cast to za.co.absa.cobrix.cobol.parser.encoding.Encoding

if i read the parquet, with spark reading, the column contains infromation such as "1b64b427", i need convert to ascii

the file copyboock i`ve wirtten like

01 Campo String

And

01 Campo X(76)

But get the same error. What its no correct?

@sfuenteRoot sfuenteRoot added the question Further information is requested label Jul 4, 2024
@yruslan
Copy link
Collaborator

yruslan commented Jul 11, 2024

Hi, I can't reproduce the issue. Could you please, paste the exact code snipped you are using, and the exact copybook?

Also, which Cobrix version are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants