-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Glue catalog in Iceberg connector #10151
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ | |
import javax.validation.constraints.Min; | ||
import javax.validation.constraints.NotNull; | ||
|
||
import java.util.Optional; | ||
|
||
import static io.trino.plugin.hive.HiveCompressionCodec.ZSTD; | ||
import static io.trino.plugin.iceberg.CatalogType.HIVE_METASTORE; | ||
import static io.trino.plugin.iceberg.IcebergFileFormat.ORC; | ||
|
@@ -38,6 +40,7 @@ public class IcebergConfig | |
private Duration dynamicFilteringWaitTimeout = new Duration(0, SECONDS); | ||
private boolean tableStatisticsEnabled = true; | ||
private boolean projectionPushdownEnabled = true; | ||
private Optional<String> defaultSchemaLocation = Optional.empty(); | ||
|
||
public CatalogType getCatalogType() | ||
{ | ||
|
@@ -167,4 +170,18 @@ public IcebergConfig setProjectionPushdownEnabled(boolean projectionPushdownEnab | |
this.projectionPushdownEnabled = projectionPushdownEnabled; | ||
return this; | ||
} | ||
|
||
@NotNull | ||
public Optional<String> getDefaultSchemaLocation() | ||
{ | ||
return defaultSchemaLocation; | ||
} | ||
|
||
@Config("iceberg.default-schema-location") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is applicable to Glue only, so should be in a config class that's bound only when Glue catalog is used. |
||
@ConfigDescription("The default base location to create a new schema") | ||
public IcebergConfig setDefaultSchemaLocation(String defaultSchemaLocation) | ||
{ | ||
this.defaultSchemaLocation = Optional.ofNullable(defaultSchemaLocation); | ||
return this; | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,8 @@ public enum IcebergErrorCode | |
ICEBERG_CURSOR_ERROR(9, EXTERNAL), | ||
ICEBERG_WRITE_VALIDATION_FAILED(10, INTERNAL_ERROR), | ||
ICEBERG_INVALID_SNAPSHOT_ID(11, USER_ERROR), | ||
ICEBERG_CATALOG_ERROR(12, EXTERNAL), | ||
ICEBERG_COMMIT_ERROR(13, EXTERNAL) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Extract commit introducing this error code. |
||
/**/; | ||
|
||
private final ErrorCode errorCode; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,7 @@ | |
import io.trino.plugin.hive.gcs.HiveGcsModule; | ||
import io.trino.plugin.hive.metastore.HiveMetastore; | ||
import io.trino.plugin.hive.s3.HiveS3Module; | ||
import io.trino.plugin.iceberg.catalog.IcebergCatalogModule; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Extract commit that introduces |
||
import io.trino.spi.NodeManager; | ||
import io.trino.spi.PageIndexerFactory; | ||
import io.trino.spi.classloader.ThreadContextClassLoader; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be run on CI.
Maybe instead of a profile with single test, let's have a profile with all tests (no exclusions).
trino/.github/workflows/ci.yml
Line 351 in 3c0cf0b
would become
also, we should move trino-druid to a different group, maybe with kudu (need to check running times)