Skip to content

Inline SQL functions at plan time#14931

Merged
rongrong merged 3 commits intoprestodb:masterfrom
prithvip:inline-sql-functions
Aug 13, 2020
Merged

Inline SQL functions at plan time#14931
rongrong merged 3 commits intoprestodb:masterfrom
prithvip:inline-sql-functions

Conversation

@prithvip
Copy link
Contributor

@prithvip prithvip commented Jul 30, 2020

== RELEASE NOTES ==
General Changes
* Add support for inlining SQL functions at query planning time. This feature is enabled by default, and can be disabled with the ``inline_sql_functions`` session property.

@prithvip prithvip force-pushed the inline-sql-functions branch from 06e0085 to 5816ffb Compare July 30, 2020 18:22
Copy link
Contributor

@rongrong rongrong 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 overall, please add tests.

@rongrong
Copy link
Contributor

Test failures are related, please fix.

@prithvip prithvip force-pushed the inline-sql-functions branch 5 times, most recently from 3fb7434 to 6725cae Compare August 4, 2020 21:16
@prithvip prithvip changed the title [WIP] Inline SQL functions at plan time Inline SQL functions at plan time Aug 4, 2020
@prithvip prithvip force-pushed the inline-sql-functions branch 3 times, most recently from 95d51db to 1f91c73 Compare August 5, 2020 22:27
Copy link
Contributor

@rongrong rongrong 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! Minor suggestion to add more tests.

@prithvip prithvip force-pushed the inline-sql-functions branch 3 times, most recently from a870188 to f661778 Compare August 11, 2020 02:48
@prithvip prithvip force-pushed the inline-sql-functions branch from f661778 to 53357b1 Compare August 12, 2020 20:43
@prithvip prithvip requested a review from rongrong August 12, 2020 20:47
@prithvip prithvip force-pushed the inline-sql-functions branch from 53357b1 to f6075d2 Compare August 12, 2020 20:55
Copy link
Contributor

@rongrong rongrong left a comment

Choose a reason for hiding this comment

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

You can squash the two commits that fixes the coercion.

@prithvip prithvip force-pushed the inline-sql-functions branch 2 times, most recently from 9f23d48 to e032df3 Compare August 12, 2020 22:06
@prithvip prithvip requested a review from rongrong August 12, 2020 22:09
Copy link
Contributor

@rongrong rongrong left a comment

Choose a reason for hiding this comment

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

Code looks good. The second commit title is too long. We restrict commit title to 72 characters.

@prithvip prithvip force-pushed the inline-sql-functions branch from e032df3 to 1942ea3 Compare August 12, 2020 23:12
@prithvip prithvip requested a review from rongrong August 12, 2020 23:13
@rongrong rongrong merged commit a9d5c4c into prestodb:master Aug 13, 2020
@rongrong
Copy link
Contributor

Let's add a release note about inline sql function. Something like

* Add support to inline sql functions at query planning time. This feature is enabled by default. It can be turned off by session property .... 

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