Skip to content

Conversation

reltuk
Copy link
Contributor

@reltuk reltuk commented Sep 23, 2021

Also removes it from FunctionFn types, TransformExpression... functions, and Aggregation.NewBuffer.

We think this ctx parameter might have been added a few months ago as part of some optimization work which never made it across the line. Instead of threading a *sql.Context everywhere, if we have need of a *sql.Context during analysis or to precompute or materialize a certain result in the future, I think I'm going to advocate for a specific optional interface that the analyzer is aware of. It could then pass the context through at a specific analyzer phase and the function/expression node would have the opportunity to get ready to do what it needs to.

Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

LGTM

We should kill off the explode function and other array functionality soon as well

@reltuk reltuk merged commit a272734 into master Sep 24, 2021
@Hydrocharged Hydrocharged deleted the aaron/expr-with-children-no-ctx branch December 8, 2021 07:13
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