Uh oh!
There was an error while loading. Please reload this page.
GH-15256: [C++][Dataset] Add support for writing with Partitioning::Default() - #33674
Conversation
pitrou
commented
Jan 17, 2023
Shouldn't this be given a more descriptive name than "default"? |
kou
commented
Jan 17, 2023
"flat"? "nothing"? |
jorisvandenbossche
commented
Jan 17, 2023
"Flat" sounds good to me. cc @westonpace |
westonpace
commented
Jan 20, 2023
I'm fine with default. I think I'd prefer "none" over "flat". "flat" implies to me that something is still happening. E.g. there is still some kind of partitioning. We currently have |
kou
commented
Jan 21, 2023
I'm OK with |
jorisvandenbossche
commented
Jan 21, 2023
There also is still some kind of partitioning, I think? I.e. a single flat directory? I would interpret "No" partitioning as a single file. |
westonpace
commented
Jan 21, 2023
@jorisvandenbossche you might be thinking of FilenamePartitioning (which I forgot to mention) which gives you: This partitioning is only going to split up files when there are too many rows. So, if you set ...and there will be no meaningful information in the filenames. |
jorisvandenbossche
commented
Jan 21, 2023
No, I was thinking about the latter. |
westonpace
commented
Jan 21, 2023
@pitrou can be tiebreaker then :). I don't like |
kou
commented
Jan 22, 2023
Can we use |
westonpace
commented
Jan 22, 2023
I suppose all partitioning schemes, given an empty schema, should behave exactly the same. That might be a better solution. For example, someone working with Spark will always want to use the hive partitioning scheme. Sometimes there might not be any partitioning columns. They still would think they are working with "the hive scheme with no columns". I'm not sure how much this scenario is tested. |
jorisvandenbossche
commented
Jan 23, 2023
From Python that is certainly tested, since if you don't pass any partitioning columns in
The downside of that is that also for other schemes like HivePartitioning files also get broken into chunks in addition to the hive-like directories, so that is not a distinguishing feature. Maybe the original "Default" partitioning is a decent name in the end, since "default" is ambiguous enough to avoid such conflicting interpretations of "flat" or "no" .. ;) |
cpcloud
commented
Mar 30, 2023
@kou Thanks for the PR! This has been open for some months now without activity, so I'm going to close it out! |
westonpace
commented
Mar 31, 2023
I didn't mean to reopen. @kou can reopen if desired. However, I do think it would be good to resolve this issue. |
kou
commented
Mar 31, 2023
@westonpace OK! We need to find a consensus approach to resolve this. |
westonpace
commented
Mar 31, 2023
Yes. That will work. |
kou
commented
Mar 31, 2023
OK. I'll do it. |
329d1f5 to
0842f39Comparekou
commented
Apr 1, 2023
@westonpace Could you review this? CI failures are unrelated:
|
westonpace
left a comment
There was a problem hiding this comment.
Thanks! We might need #34872 to make sure the tests run.
Uh oh!
There was an error while loading. Please reload this page.
…ing::Default() It writes all data into one directory.
Co-Authored-By: Weston Pace <weston.pace@gmail.com>
2d5e254 to
87408a4Comparewestonpace
commented
Apr 5, 2023
CI failures are unrelated. |
ursabot
commented
Apr 6, 2023
Benchmark runs are scheduled for baseline = c219863 and contender = 8d8d21f. 8d8d21f is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
…ing::Default() (apache#33674) ### What changes are included in this PR? It writes all data into one directory. ### Are these changes tested? Yes. ### Are there any user-facing changes? Yes. * Closes: apache#15256 Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: Weston Pace <weston.pace@gmail.com>
What changes are included in this PR?
It writes all data into one directory.
Are these changes tested?
Yes.
Are there any user-facing changes?
Yes.