Skip to content

Consolidate parquet examples into the doc comments #9154

Closed

Description

@alamb

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As we pointed out on https://github.com/apache/arrow-rs/pull/9115/changes#r2679491606

Many existing examples in the https://github.com/apache/arrow-rs/tree/main/parquet/examples directory are either redundant or would be easier to find if we moved them into the documentation comments

For example the async reader example in

async fn main() -> Result<()> {

Is entirely redundant with https://docs.rs/parquet/latest/parquet/arrow/arrow_reader/struct.ArrowReaderBuilder.html#method.new

Describe the solution you'd like
For each example,

  1. Add the example to the corresponding API, if it is not alread there
  2. Remove the example

PLease make one PR for each example, to make reviewing easier

Describe alternatives you've considered

Additional context

Activity

  1. added
    enhancement
    good first issue
    on Jan 13, 2026
  2. vigneshsiva11 commented on Jan 14, 2026

    @vigneshsiva11
    Contributor

    Hi, I’ve submitted a PR that moves the async parquet example into the
    ArrowReaderBuilder::try_new rustdoc comments and removes the redundant
    standalone example file.

    Please have a look . Thanks!

  3. added a commit that references this issue on Jan 21, 2026
    d60b1cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions