Skip to content

move vcache.Path to field.Projection#5773

Merged
mccanne merged 2 commits intomainfrom
field-projection
Apr 6, 2025
Merged

move vcache.Path to field.Projection#5773
mccanne merged 2 commits intomainfrom
field-projection

Conversation

@mccanne
Copy link
Copy Markdown
Collaborator

@mccanne mccanne commented Apr 6, 2025

This commit moves the projection data structure used by vcache into the generic field package so it can be shared in more places without creating import cycles.

This is needed by an upcoming PR that will add projection pushdown to the CSUP metadata filter, which is needed by a subsequent PR that will make CSUP more efficient by allowing lazy loading of types.

This commit moves the projection data structure used by vcache
into the generic field package so it can be shared in more places
without creating import cycles.

This is needed by an upcoming PR that will add projection pushdown
to the CSUP metadata filter, which is needed by a subsequent PR that
will make CSUP more efficient by allowing lazy loading of types.
@mccanne mccanne requested review from mattnibs and nwt April 6, 2025 17:00
// A path is an array of string or Forks
type Path []any //XXX clean this up later
type Fork []Path
// A Projection is an array of string or Forks
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit:

Suggested change
// A Projection is an array of string or Forks
// A Projection is an slice of string or Forks

@mccanne mccanne merged commit 25d4e9f into main Apr 6, 2025
3 checks passed
@mccanne mccanne deleted the field-projection branch April 6, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants