Skip to content

[FEA] Efficient partition_cols for parquet writer #5059

Closed

Description

@chinmaychandak

I remember us discussing that the partition_cols mechanism in the current GPU-acc parquet writer can be improved considerably. Was this w.r.t. the CPU parquet writer, or just a boost in performance on how the GPU handles stuff? Has anyone started looking into this?

Activity

  1. added
    Needs Triage
    feature request
    on Apr 30, 2020
  2. OlivierNV commented on May 1, 2020

    @OlivierNV
    Contributor

    From what I remember of the discussion a while back, the partitioning would happen mostly upstream from the writer. For the writer, there was talk about the multi-file partitioned sink support where the writer could be provided with a vector of {row, numrows} pairs to write pieces of a table in separate files (which speeds up the encoding for many small partitions vs multiple write_parquet calls per sliced table view).

  3. chinmaychandak commented on May 1, 2020

    @chinmaychandak
    ContributorAuthor

    Thanks for providing some clarity, Olivier! @kkraus14, any ideas here?

  4. added
    cuIO
    libcudf
    Python
    and removed
    Needs Triage
    on May 1, 2020
  5. OlivierNV commented on May 1, 2020

    @OlivierNV
    Contributor

    Note that the biggest perf problem right now is that the python code will fall back to the pyarrow CPU writer if partition_cols is anything other than None.
    It was recently pointed out that df.to_parquet() is faster than df.to_arrow(), so it's like the GPU is on its second parquet victory lap before the CPU even arrived at the starting line (any benefits from multifile parquet writer support are likely minor in comparison).

  6. kkraus14 commented on May 2, 2020

    @kkraus14
    Contributor

    It was recently pointed out that df.to_parquet() is faster than df.to_arrow(), so it's like the GPU is on its second parquet victory lap before the CPU even arrived at the starting line (any benefits from multifile parquet writer support are likely minor in comparison).

    Yea we need to spend a bit of time looking at this code, but likely the overheads of doing a memory copy per buffer serially is killing us and there's a lot of room for improvement.

  7. github-actions commented on Mar 14, 2021

    @github-actions

    This issue has been labeled inactive-90d due to no recent activity in the past 90 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed.

  8. self-assigned this
    on Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

PythoncuIOfeature requestlibcudf

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions