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

Minor: rename GetFieldAccessCharacteristic and add docs #7220

Merged
merged 2 commits into from
Aug 8, 2023

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Aug 7, 2023

Which issue does this PR close?

Related to #7193
Follows #7215 from @izveigor

Rationale for this change

In order to have a good experience accessing fields, it should be easy to use the code that manipulates them

What changes are included in this PR?

  1. Rename GetFieldAccessCharacteristic to GetFieldAccessSchema to better reflect what it does
  2. move the calculation into GetFieldAccessSchema::get_accessed_field
  3. Reduce duplication

Are these changes tested?

Covered by existing tests

Are there any user-facing changes?

No, these are unreleased APIs (added in #7215)

@github-actions github-actions bot added logical-expr Logical plan and expressions physical-expr Changes to the physical-expr crates labels Aug 7, 2023
@alamb
Copy link
Contributor Author

alamb commented Aug 7, 2023

CI is failing due to #7221

/// # Error
/// Errors if
/// * the `data_type` is not a Struct or a List,
/// * the `data_type` of extra key does not match with `data_type` of key
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is better to replace extra_key and key with new terms

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated this in c97313f -- what do you think?

@alamb alamb merged commit 627abd7 into apache:main Aug 8, 2023
@alamb alamb deleted the alamb/schema_consolidate branch August 8, 2023 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions physical-expr Changes to the physical-expr crates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants