AbsaOSS / AbsaOSS/cobrix

multi copybook or not

未關閉
#140 8 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Scala
星號
170
分支
96
平均合併
57 分鐘
30 天內合併 PR
2

描述

I have a copybook which has multiple 01 levels. Can this copy book is parsed as variable length.
can I parse like below

cobolDataframe = spark
.read
.format("cobol")
.option("copybook", v_copybook)
.option("schema_retention_policy", "collapse_root") //removes the root record headerc
.option("drop_group_fillers", "false")
.option("generate_record_id", false) // this adds the file id and record id
.option("is_record_sequence", "true") // reader to use 4 byte record headers to extract records from a mainframe file
.option("is_rdw_big_endian", "true")
//.option("is_rdw_part_of_record_length", false)
.option("rdw_adjustment", -4)
.load(v_data)

Please confirm.
After parsing I am not getting correct parsed data.

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。