Skip to content

Inject null provider when thrift execution is not needed#15501

Merged
rongrong merged 1 commit intoprestodb:masterfrom
rongrong:fix-injection
Dec 8, 2020
Merged

Inject null provider when thrift execution is not needed#15501
rongrong merged 1 commit intoprestodb:masterfrom
rongrong:fix-injection

Conversation

@rongrong
Copy link
Contributor

@rongrong rongrong commented Dec 4, 2020

Test plan - run Presto server

== RELEASE NOTES ==

General Changes
* Fix injection issue when using function namespace manager

@rongrong rongrong force-pushed the fix-injection branch 3 times, most recently from 0a9a5cf to 2b1d3ed Compare December 5, 2020 01:14
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we just make this Optional? :)

Copy link
Contributor

Choose a reason for hiding this comment

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

I would also prefer Optional here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Have you not pushed yet since it's still @nullable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Decided to go with nullable for injection but change the member variable to optional. This for the most part avoids potential bugs of having a nullable variable, and doesn't require me to figure out how to inject Optional 😂

Copy link
Contributor

Choose a reason for hiding this comment

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

I would also prefer Optional here.

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.

3 participants