Skip to content

Minor: move AnalysisContext out of physical_expr and into its own module#7127

Merged
alamb merged 1 commit intoapache:mainfrom
alamb:alamb/isolate_anayis
Jul 30, 2023
Merged

Minor: move AnalysisContext out of physical_expr and into its own module#7127
alamb merged 1 commit intoapache:mainfrom
alamb:alamb/isolate_anayis

Conversation

@alamb
Copy link
Copy Markdown
Contributor

@alamb alamb commented Jul 28, 2023

Which issue does this PR close?

Inspired while working on #7126

Rationale for this change

the physical_expr module was getting large with several unrelated things like AnalysisContext and a scatter function

What changes are included in this PR?

  1. Move AnalysisContext and related functions into a new module
  2. Move scatter into utils

Are these changes tested?

Existing tests

Are there any user-facing changes?

I don't think so -- the paths have been updated and all existing code should work

@github-actions github-actions bot added the physical-expr Changes to the physical-expr crates label Jul 28, 2023
@alamb alamb marked this pull request as ready for review July 28, 2023 19:01
/// The shared context used during the analysis of an expression. Includes
/// the boundaries for all known columns.
#[derive(Clone, Debug, PartialEq)]
pub struct AnalysisContext {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is all code moved from physical_expr

};
}

#[cfg(test)]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

moved to utils

Ok(make_array(data))
}

#[macro_export]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this macro was unused from what I can tell

Copy link
Copy Markdown
Member

@viirya viirya left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@alamb alamb merged commit 2427d3a into apache:main Jul 30, 2023
@alamb alamb deleted the alamb/isolate_anayis branch July 30, 2023 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-expr Changes to the physical-expr crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants