Skip to content

Commit

Permalink
Promote procedure function from experimental and trino 466
Browse files Browse the repository at this point in the history
  • Loading branch information
wAVeckx committed Dec 4, 2024
1 parent 3e6815e commit f84a398
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 9 deletions.
62 changes: 55 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<parent>
<groupId>io.airlift</groupId>
<artifactId>airbase</artifactId>
<version>200</version>
<version>202</version>
</parent>

<artifactId>trino-jtopen</artifactId>
<version>465</version>
<version>466</version>
<packaging>trino-plugin</packaging>
<description>Trino - JTOpen Connector</description>

Expand All @@ -24,16 +24,16 @@
<air.check.skip-checkstyle>false</air.check.skip-checkstyle>
<air.build.jvmsize>4g</air.build.jvmsize>

<dep.trino.version>465</dep.trino.version>
<dep.airlift.version>285</dep.airlift.version>
<dep.trino.version>466</dep.trino.version>
<dep.airlift.version>287</dep.airlift.version>
<dep.slice.version>2.3</dep.slice.version>
<dep.opentelemetry.version>1.44.1</dep.opentelemetry.version>
<dep.opentelemetry-instrumentation.version>2.10.0</dep.opentelemetry-instrumentation.version>
<dep.packaging.version>${dep.airlift.version}</dep.packaging.version>
<dep.guava.version>33.3.1-jre</dep.guava.version>
<dep.guice.version>7.0.0</dep.guice.version>
<dep.errorprone.version>2.36.0</dep.errorprone.version>
<dep.jackson.version>2.18.1</dep.jackson.version>
<dep.jackson.version>2.18.2</dep.jackson.version>
<dep.jakarta.version>3.1.0</dep.jakarta.version>
<dep.jdbi.version>3.47.0</dep.jdbi.version>
<dep.joda.version>2.12.7</dep.joda.version>
Expand Down Expand Up @@ -333,7 +333,6 @@
<spiArtifactId>trino-spi</spiArtifactId>
</configuration>
</plugin>

<plugin>
<groupId>ca.vanzyl.provisio.maven.plugins</groupId>
<artifactId>provisio-maven-plugin</artifactId>
Expand Down Expand Up @@ -362,7 +361,6 @@
<fork>false</fork>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand All @@ -384,6 +382,56 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.basepom.maven</groupId>
<artifactId>duplicate-finder-maven-plugin</artifactId>
<configuration>
<exceptions combine.children="append">
<exception>
<conflictingDependencies>
<dependency>
<groupId>com.google.cloud.bigdataoss</groupId>
<artifactId>gcs-connector</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
</conflictingDependencies>
<resources>
<resource>mozilla/public-suffix-list.txt</resource>
</resources>
</exception>
<exception usePattern="true">
<conflictingDependencies>
<dependency>
<groupId>io.airlift</groupId>
<artifactId>aircompressor-v3</artifactId>
</dependency>
<dependency>
<groupId>io.trino</groupId>
<artifactId>trino-jdbc</artifactId>
</dependency>
</conflictingDependencies>
<resources>
<resource>aircompressor/.*\.so</resource>
<resource>aircompressor/.*\.dylib</resource>
</resources>
</exception>
</exceptions>
<ignoredResourcePatterns>
<ignoredResourcePattern>aircompressor/.*\.(so|dylib)</ignoredResourcePattern>
</ignoredResourcePatterns>
</configuration>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
4 changes: 3 additions & 1 deletion src/main/java/io/trino/plugin/jtopen/JTOpenConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import io.airlift.configuration.Config;
import io.airlift.configuration.ConfigDescription;
import io.airlift.configuration.LegacyConfig;
import jakarta.validation.constraints.Min;

//import java.util.concurrent.TimeUnit;
Expand Down Expand Up @@ -45,7 +46,8 @@ public boolean isStoredProcedureTableFunctionEnabled()
return storedProcedureTableFunctionEnabled;
}

@Config("jtopen.experimental.stored-procedure-table-function-enabled")
@Config("jtopen.stored-procedure-table-function-enabled")
@LegacyConfig("jtopen.experimental.stored-procedure-table-function-enabled")
@ConfigDescription("Allows accessing Stored procedure as a table function")
public JTOpenConfig setStoredProcedureTableFunctionEnabled(boolean storedProcedureTableFunctionEnabled)
{
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/io/trino/plugin/jtopen/TestJTOpenConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void testExplicitPropertyMappings()

Map<String, String> properties = new ImmutableMap.Builder<String, String>()
.put("jtopen.varchar-max-length", String.valueOf(testVarcharLength))
.put("jtopen.experimental.stored-procedure-table-function-enabled", "true")
.put("jtopen.stored-procedure-table-function-enabled", "true")
.build();

JTOpenConfig expected = new JTOpenConfig()
Expand Down

0 comments on commit f84a398

Please sign in to comment.