Can the writer support the scenario when the output is a positional file with header&data?
还没有人认领这个 Issue。
评估
调研方向
检查 writer 的 positional-file 路径,以及它如何接受 Spark DataFrames 和 copybooks。将提议的 header/data 拆分和文件合并与 writer 的现有行为进行比较;当 issue 中记录了受支持的方法,或有一个范围明确且包含测试的实现计划时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Question
Can the writer support the scenario when the output is a positional file with header&data?
Considering header and data as two different sets of records having different schemas, usually header is 1 row while data is N row.
What I was considering:
- manage header and data in same Spark Dataframe. Resulting in a Df with schema the union of columns of header and columns of data. Headers column will have values only in first row and nulls in the rest N rows, while data columns will have nulls in first row and values only in N rows after the first one (where N is the number of records in my df)
- write the df with 2 different copybooks: 1 with the header schema (writing only top 1 row), 1 with the data schema (writing all rows except first one). when writing all the columns not in the copybook will not be written to outputs
- the results: 2 separate files
- merge them together following the order header>data.
Do you think it will work? Is there something smarter?
- 主要语言
- Scala
- 星标
- 170
- 派生
- 96
- 平均合并
- 7 天 5 小时
- 30 天内合并 PR
- 4
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AbsaOSS/cobrix 的其他 Issue
-
bug
难度 4/5 3-5 天 新手友好度 54/100
-
enhancement
难度 4/5 3-5 天 新手友好度 48/100
-
question
难度 4/5 3-5 天 新手友好度 38/100
-
question
难度 4/5 3-5 天 新手友好度 35/100
-
enhancement
难度 5/5 一周以上 新手友好度 25/100
相似的 Issue
-
requires-triage
难度 2/5 1-3 小时 新手友好度 72/100
apache/datafusion-comet#7583 ·
维护者通常 2 天内回复
-
A-api C-bug S-ready-for-human
难度 2/5 1-3 小时 新手友好度 70/100
ergoplatform/ergo#2932 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
lichess-org/lila#22454 ·
维护者通常 1 天内回复
-
module: core type: refactor
难度 2/5 1-3 小时 新手友好度 78/100
bigbluebutton/bigbluebutton#26460 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
chipsalliance/rocket-chip#3845 ·