apache / apache/arrow

[C++] Enable CSV Writer to append / overwrite existing file

Open
#30,429 8 comments 0 reactions 0 assignees View on GitHub
Component: C++ good-first-issue Type: task
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

This would be a match for the `readr::write_csv()` `append` argument: boolean. If `FALSE` will overwrite existing file. If `TRUE` will append to existing file. In both cases, if the file doesn't exist, a new file is created. 

**Reporter**: [Dragoș Moldovan-Grünfeld](https://issues.apache.org/jira/browse/ARROW-14904) / @dragosmg
#### Related issues:
- [[C++][Python] Un-deprecate FileSystem::OpenAppendStream](https://github.com/apache/arrow/issues/30491) (relates to)

**Note**: *This issue was originally created as [ARROW-14904](https://issues.apache.org/jira/browse/ARROW-14904). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*

Contributor guide

Open the contributing guide

Research direction

Start by locating the C++ CSV Writer and read the related issue about un-deprecating FileSystem::OpenAppendStream. The change is complete when the writer can create a missing file, overwrite an existing file when append is false, and append when append is true; verify these behaviors with the relevant C++ tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.