Skip to content

Use the same RowExpressionCompiler when compiling expressions#14959

Merged
rongrong merged 1 commit intoprestodb:masterfrom
rongrong:fix-sql-lambda
Aug 5, 2020
Merged

Use the same RowExpressionCompiler when compiling expressions#14959
rongrong merged 1 commit intoprestodb:masterfrom
rongrong:fix-sql-lambda

Conversation

@rongrong
Copy link
Contributor

@rongrong rongrong commented Aug 5, 2020

Earlier commit changed CursorProcessorCompiler to use the same
RowExpressionCompiler to compile all expressions. We should just
use the same RowExpressionCompiler for all expressions within the
same class.

Test plan - See added test

== RELEASE NOTES ==

General Changes
* Fix compiler error in certain situations where sql functions with same lambda are used multiple times

Copy link
Contributor

@wenleix wenleix left a comment

Choose a reason for hiding this comment

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

LGTM.

Earlier commit changed CursorProcessorCompiler to use the same
RowExpressionCompiler to compile all expressions. We should just
use the same RowExpressionCompiler for all expressions within the
same class.
@rongrong rongrong merged commit c960ab4 into prestodb:master Aug 5, 2020
@rongrong rongrong deleted the fix-sql-lambda branch August 5, 2020 19:44
@caithagoras caithagoras mentioned this pull request Aug 14, 2020
7 tasks
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