Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ under the License.
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.paimon</groupId>
<artifactId>paimon-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>23</version>
</parent>

<groupId>org.apache.paimon</groupId>
<artifactId>paimon-trino-${trino.version}</artifactId>
<name>Paimon : Trino : ${trino.version}</name>
<version>1.0-SNAPSHOT</version>

<scm>
<url>https://github.com/apache/paimon-trino</url>
Expand All @@ -37,9 +39,10 @@ under the License.
</scm>

<properties>
<paimon.version>1.0-SNAPSHOT</paimon.version>
<target.java.version>21</target.java.version>
<jdk.test.version>21</jdk.test.version>
<paimon.version>1.0.1</paimon.version>
<java.version>21</java.version>
<maven.compiler.source>${java.version}</maven.compiler.source>
<maven.compiler.target>${java.version}</maven.compiler.target>
<trino.version>440</trino.version>
<airlift.version>241</airlift.version>
<slice.version>2.2</slice.version>
Expand Down Expand Up @@ -194,9 +197,21 @@ under the License.

<build>
<plugins>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.14.0</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<!-- The semantics of this option are reversed, see MCOMPILER-209. -->
<useIncrementalCompilation>false</useIncrementalCompilation>
<compilerArgs>
<!-- Prevents recompilation due to missing package-info.class, see MCOMPILER-205 -->
<arg>-Xpkginfo:always</arg>
</compilerArgs>
</configuration>
</plugin>

<plugin>
Expand Down
34 changes: 15 additions & 19 deletions src/main/java/org/apache/paimon/trino/catalog/TrinoCatalog.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@

package org.apache.paimon.trino.catalog;

import org.apache.paimon.catalog.Catalog;
import org.apache.paimon.catalog.CatalogContext;
import org.apache.paimon.catalog.CatalogFactory;
import org.apache.paimon.catalog.Database;
import org.apache.paimon.catalog.Identifier;
import org.apache.paimon.catalog.*;
import org.apache.paimon.fs.FileIO;
import org.apache.paimon.fs.Path;
import org.apache.paimon.manifest.PartitionEntry;
import org.apache.paimon.options.Options;
import org.apache.paimon.partition.Partition;
import org.apache.paimon.schema.Schema;
import org.apache.paimon.schema.SchemaChange;
import org.apache.paimon.security.SecurityContext;
Expand Down Expand Up @@ -109,6 +104,11 @@ public Map<String, String> options() {
return current.options();
}

@Override
public boolean caseSensitive() {
return false;
}

@Override
public FileIO fileIO() {
if (!inited) {
Expand All @@ -134,19 +134,20 @@ public Database getDatabase(String name) throws DatabaseNotExistException {
}

@Override
public void dropDatabase(String s, boolean b, boolean b1)
public void dropDatabase(String name, boolean ignoreIfNotExists, boolean cascade)
throws DatabaseNotExistException, DatabaseNotEmptyException {
current.dropDatabase(s, b, b1);
current.dropDatabase(name, ignoreIfNotExists, cascade);
}

@Override
public Table getTable(Identifier identifier) throws TableNotExistException {
return current.getTable(identifier);
public void alterDatabase(String name, List<PropertyChange> changes, boolean ignoreIfNotExists) throws DatabaseNotExistException {

current.alterDatabase(name, changes, ignoreIfNotExists);
}

@Override
public Path getTableLocation(Identifier identifier) {
return current.getTableLocation(identifier);
public Table getTable(Identifier identifier) throws TableNotExistException {
return current.getTable(identifier);
}

@Override
Expand Down Expand Up @@ -190,7 +191,7 @@ public void dropPartition(Identifier identifier, Map<String, String> partitions)
}

@Override
public List<PartitionEntry> listPartitions(Identifier identifier)
public List<Partition> listPartitions(Identifier identifier)
throws TableNotExistException {
return current.listPartitions(identifier);
}
Expand All @@ -213,9 +214,4 @@ public void alterTable(Identifier identifier, SchemaChange change, boolean ignor
throws TableNotExistException, ColumnAlreadyExistException, ColumnNotExistException {
current.alterTable(identifier, change, ignoreIfNotExists);
}

@Override
public boolean allowUpperCase() {
return current.allowUpperCase();
}
}