Skip to content

Formalize the name of the nested Field in a list #6784

Closed

Description

@gruuya

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As discussed in apache/datafusion#13468 (comment), currently it is a convention to have list field member fields (i.e. the inner field) names be item. However this is not formalized in any way, and consequently there's a large number of item literals thrown around the codebase.

Describe the solution you'd like
Add a Field::LIST_FIELD_DEFAULT_NAME constant set to item, and use it in Field::new_list_field.

Also replace any calls to Field::new with explicit item name to use Field::new_list_field instead.

Describe alternatives you've considered
Could also make a free-standing as opposed to an associated constant (or not extract into a constant at all).

Additional context
Spin-off out of apache/datafusion#13468

Activity

  1. added
    enhancement
    on Nov 25, 2024
  2. added
    parquet
    on Dec 17, 2024
  3. alamb commented on Dec 17, 2024

    @alamb
    Contributor

    label_issue.py automatically added labels {'parquet'} from #6785

  4. added
    arrow
    on Dec 17, 2024
  5. alamb commented on Dec 17, 2024

    @alamb
    Contributor

    label_issue.py automatically added labels {'arrow'} from #6785

  6. added
    arrow-flight
    on Dec 17, 2024
  7. alamb commented on Dec 17, 2024

    @alamb
    Contributor

    label_issue.py automatically added labels {'arrow-flight'} from #6785

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

    arrowarrow-flightenhancementparquet

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions