-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Redesign function management abstraction #196
Closed
Closed
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
f40fa3f
Move static methods from FunctionRegistry to OperatorSignatureUtils a…
rongrong ffa8a16
Add FunctionManager wrapper around FunctionRegistry
rongrong c4d6b0b
Simplify SqlToRowExpressionTranslator visitGenericLiteral
dain cf69cfb
Add FunctionHandle
dain 7915b62
Resolve functions to a handle during analysis
dain f6f8be3
Switch window function to use FunctionHandle
dain 1066e1f
Switch aggergation function to use FunctionHandle
dain b5958bd
Switch cast to FunctionHandle
dain 5128b07
Add FunctionManager lookupSaturatedFloorCast
dain de7eb08
Remove FunctionManager canResolveOperator
dain ee03112
Switch operators to FunctionHandle
dain e635940
Convert FunctionManager resolveOperator to TypeSignatureProvider
dain dd45579
Add system to deserialize a function handle from a SQL expression
dain f6f70dc
Split special form of row expressions to separate node
dain f652ef4
Remove FunctionManager isRegistered
dain 37f09ea
Add FunctionManager lookupInternalCastFunction
dain 0a12602
Convert CallExpression to use FunctionHandle
dain 4c921ae
Add name hint to CallExpression
dain 246d126
Removed unused SqlToRowExpressionTranslator functionKind field
dain f733c4c
Simplify CallExpression bytecode generation
dain 2c1dbaa
Remove unused Signature argument from SpecialFormBytecodeGenerator
dain 7efdb47
Convert function and operator dependencies to FunctionHandle
dain 727ea68
Convert LiteralInterpreter to FunctionHandle
dain d5d4dda
Remove getScalarFunctionImplementation by Signature
dain 5164aca
Add FunctionManager.getFunctionMetadata
dain 6693fbe
Reduce use of resolveFunction after analysis
dain 5bb184c
Reduce use of resolveOperator after analysis
dain a14d758
Add some FunctionManager documentation
dain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of this commit seems to be just rename
session
toconnectorSession
other than this two lines. Failed to understand the association between the code change and the commit title here. 🤣There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolving a function requires a full session, where as everything else in this code only needs a connector session. The renames are because connector session was called
session
, and I wanted to use that name for the full session.