Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[R] Expose ignore_extra_columns and pad_short_rows CSV parse options

未关闭 适合新手
#51,659 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@rajaryan2007 已经在做这个了。

开始于 2026年9月30日。

  • #51662 来自 @rajaryan2007 —— 未关闭

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
76/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
cpp, r
领域
data

调研方向

从 R/csv.R 中的 csv_parse_options() 和 CsvParseOptions$create() 开始,然后检查 R/src/csv.cpp 中现有的 ParseOptions 映射。添加对 ignore_extra_columns 和 pad_short_rows 的支持,使两个 R 入口点都接受它们,并由 csv.cpp 将它们传递给 Arrow C++;完成标准是可以从 R 配置这两个选项。

由索引模型根据 Issue 内容生成。

描述

Component: R good-first-issue Type: enhancement
Describe the enhancement requested

Arrow C++ 26.0.0 adds two new arrow::csv::ParseOptions fields:

  • ignore_extra_columns (#51118): rows with more columns than expected have the extra columns dropped instead of erroring.
  • pad_short_rows (#50926): rows with fewer columns than expected are padded with nulls instead of erroring.

Neither can be set from R. csv_parse_options() and CsvParseOptions$create() should accept both, and csv.cpp should pass them through:

https://github.com/apache/arrow/blob/9479e686b9fca57f5ce90db704c5eccf3d5a0d48/r/R/csv.R#L735-L753
https://github.com/apache/arrow/blob/9479e686b9fca57f5ce90db704c5eccf3d5a0d48/r/src/csv.cpp#L64-L72

Component(s)

R

主要语言
C++
星标
17.2k
派生
4.4k
平均合并
3 天 5 小时
30 天内合并 PR
67

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/arrow 的其他 Issue

查看 apache/arrow 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。