diff --git a/presto-docs/src/main/sphinx/plugin/native-sidecar-plugin.rst b/presto-docs/src/main/sphinx/plugin/native-sidecar-plugin.rst index 49440a816288b..760176afbe635 100644 --- a/presto-docs/src/main/sphinx/plugin/native-sidecar-plugin.rst +++ b/presto-docs/src/main/sphinx/plugin/native-sidecar-plugin.rst @@ -26,6 +26,8 @@ Property Name Description ``coordinator-sidecar-enabled`` Enables sidecar in the coordinator true ``native-execution-enabled`` Enables native execution true ``presto.default-namespace`` Sets the default function namespace `native.default` +``plugin.dir`` Specifies which directory under installation root `{root-directory}/native-plugins/` + to scan for plugins at startup. ============================================ ===================================================================== ============================== .. _sidecar-worker-properties: diff --git a/presto-product-tests/conf/docker/common/compose-commons.sh b/presto-product-tests/conf/docker/common/compose-commons.sh index 5c20783716b60..eae9f18ce9583 100644 --- a/presto-product-tests/conf/docker/common/compose-commons.sh +++ b/presto-product-tests/conf/docker/common/compose-commons.sh @@ -39,16 +39,6 @@ if [[ -z "${PRESTO_SERVER_DIR:-}" ]]; then source "${PRODUCT_TESTS_ROOT}/target/classes/presto.env" PRESTO_SERVER_DIR="${PROJECT_ROOT}/presto-server/target/presto-server-${PRESTO_VERSION}/" fi - -# The following plugin results in a function signature conflict when loaded in Java/ sidecar disabled native clusters. -# This plugin is only meant for sidecar enabled native clusters, hence exclude it. -PLUGIN_TO_EXCLUDE="native-sql-invoked-functions-plugin" - -if [[ -d "${PRESTO_SERVER_DIR}/plugin/${PLUGIN_TO_EXCLUDE}" ]]; then - echo "Excluding plugin: $PLUGIN_TO_EXCLUDE" - rm -rf "${PRESTO_SERVER_DIR}/plugin/${PLUGIN_TO_EXCLUDE}" -fi - export_canonical_path PRESTO_SERVER_DIR if [[ -z "${PRESTO_CLI_JAR:-}" ]]; then diff --git a/presto-server/src/main/provisio/presto.xml b/presto-server/src/main/provisio/presto.xml index d15a041c7d1f5..59dd851e6436e 100644 --- a/presto-server/src/main/provisio/presto.xml +++ b/presto-server/src/main/provisio/presto.xml @@ -28,7 +28,7 @@ - + @@ -281,19 +281,92 @@ - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - +