Conversation
core/trino-main/src/main/java/io/trino/server/PluginManager.java
Outdated
Show resolved
Hide resolved
|
What would a such a plugin do if Trino is not aware of it and doesn’t know how to use it? Please describe the motivation for this change. |
@martint One can use Also please notice #16066 that also presents the value of |
|
But a plugin needs to be inserted somewhere in the flow of a query. How would plugins added via a PluginInstaller be injected into the flow if the engine has no idea what the plugin is for? |
Yes, for example However, my motivation was to allow plugin to affect behavior of other processes than query execution that were added to customized Trino. IMO allowing changes of query behavior should be only allowed only with dedicated SPI. Query execution is too complex to be reasonably customized. |
core/trino-main/src/main/java/io/trino/server/PluginManager.java
Outdated
Show resolved
Hide resolved
That way when adding new Plugin type we can provide associated with plugin installer that we handle it installation without changes in PluginManager.
c2384d8 to
71b40a3
Compare
You don’t need a plugin for that. You can just bind additional Guice modules to extend the Trino server if you need additional functionality. It’s still not clear to me what problem we’re trying to solve. |
Yes. But if you want to have this functionality in the plugin, behind the plugin classloader isolation and as part of the bigger plugin then additional plugins are not enough. |
Description
Additional context and related issues
Release notes
(x) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text: