Skip to content

Commit

Permalink
ADH-4982
Browse files Browse the repository at this point in the history
added support arenadata catalog manager
  • Loading branch information
VitekArkhipov committed Sep 28, 2024
1 parent 8edf5b4 commit 83d729d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions core/trino-main/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,12 @@
<scope>runtime</scope>
</dependency>

<dependency>
<groupId>io.arenadata</groupId>
<artifactId>trino-catalog-manager</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>net.java.dev.jna</groupId>
<artifactId>jna-platform</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class CatalogManagerConfig
{
public enum CatalogMangerKind
{
STATIC, DYNAMIC
STATIC, DYNAMIC, ARENADATA
}

private CatalogMangerKind catalogMangerKind = CatalogMangerKind.STATIC;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.google.inject.Binder;
import com.google.inject.Scopes;
import io.airlift.configuration.AbstractConfigurationAwareModule;
import io.arenadata.trino.catalog.ArenadataCatalogManagerModule;

import static com.google.inject.multibindings.OptionalBinder.newOptionalBinder;

Expand All @@ -34,6 +35,7 @@ protected void setup(Binder binder)
switch (config.getCatalogMangerKind()) {
case STATIC -> install(new StaticCatalogManagerModule());
case DYNAMIC -> install(new DynamicCatalogManagerModule());
case ARENADATA -> install(new ArenadataCatalogManagerModule());
}

install(new CatalogServiceProviderModule());
Expand Down

0 comments on commit 83d729d

Please sign in to comment.