Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RecordBatch normalization (flattening) #6758

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Edited examples to not be ran as tests.
  • Loading branch information
nglime committed Dec 31, 2024
commit 6d6b0269b732b81498a8adefa9f3c29ecfe54858
8 changes: 4 additions & 4 deletions arrow-array/src/record_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,13 +400,13 @@ impl RecordBatch {
///
/// `separator`: Nested [`Field`]s will generate names separated by `separator`, e.g. for
/// separator= "." and the schema:
///
/// ```text
/// "foo": StructArray<"bar": Utf8>
///
/// ```
/// will generate:
///
/// ```text
/// "foo.bar": Utf8
///
/// ```
/// `max_level`: The maximum number of levels (depth of the `Schema` and `Columns`) to
/// normalize. If `0`, normalizes all levels.
///
Expand Down
7 changes: 4 additions & 3 deletions arrow-schema/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,13 @@ impl Schema {
/// Returns a new schema, normalized based on the max_level field.
/// `separator`: Nested [`Field`]s will generate names separated by `separator`, e.g. for
/// separator= "." and the schema:
///
/// ```text
/// "foo": StructArray<"bar": Utf8>
///
/// ```
/// will generate:
///
/// ```text
/// "foo.bar": Utf8
/// ```
///
/// `max_level`: The maximum number of levels (depth of the `Schema`) to normalize. If `0`,
/// normalizes all levels.
Expand Down
Loading