Skip to content

Commit 0dffa67

Browse files
committed
Add connector test for default column values
1 parent 8680367 commit 0dffa67

File tree

12 files changed

+100
-0
lines changed

12 files changed

+100
-0
lines changed

plugin/trino-base-jdbc/src/test/java/io/trino/plugin/jdbc/BaseJdbcConnectorTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior)
152152
case SUPPORTS_ADD_COLUMN_WITH_POSITION,
153153
SUPPORTS_CREATE_MATERIALIZED_VIEW,
154154
SUPPORTS_CREATE_VIEW,
155+
SUPPORTS_DEFAULT_COLUMN_VALUE,
155156
SUPPORTS_MERGE,
156157
SUPPORTS_PREDICATE_EXPRESSION_PUSHDOWN,
157158
SUPPORTS_ROW_LEVEL_UPDATE -> false;

plugin/trino-bigquery/src/test/java/io/trino/plugin/bigquery/BaseBigQueryConnectorTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior)
102102
case SUPPORTS_ADD_COLUMN,
103103
SUPPORTS_CREATE_MATERIALIZED_VIEW,
104104
SUPPORTS_CREATE_VIEW,
105+
SUPPORTS_DEFAULT_COLUMN_VALUE,
105106
SUPPORTS_MAP_TYPE,
106107
SUPPORTS_MERGE,
107108
SUPPORTS_NEGATIVE_DATE,

plugin/trino-cassandra/src/test/java/io/trino/plugin/cassandra/TestCassandraConnectorTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior)
9494
SUPPORTS_CREATE_TABLE_WITH_COLUMN_COMMENT,
9595
SUPPORTS_CREATE_TABLE_WITH_TABLE_COMMENT,
9696
SUPPORTS_CREATE_VIEW,
97+
SUPPORTS_DEFAULT_COLUMN_VALUE,
9798
SUPPORTS_MAP_TYPE,
9899
SUPPORTS_MERGE,
99100
SUPPORTS_NOT_NULL_CONSTRAINT,

plugin/trino-delta-lake/src/test/java/io/trino/plugin/deltalake/TestDeltaLakeConnectorTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior)
178178
SUPPORTS_ADD_FIELD,
179179
SUPPORTS_AGGREGATION_PUSHDOWN,
180180
SUPPORTS_CREATE_MATERIALIZED_VIEW,
181+
SUPPORTS_DEFAULT_COLUMN_VALUE,
181182
SUPPORTS_DROP_FIELD,
182183
SUPPORTS_LIMIT_PUSHDOWN,
183184
SUPPORTS_PREDICATE_PUSHDOWN,

plugin/trino-hive/src/test/java/io/trino/plugin/hive/BaseHiveConnectorTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior)
253253
case SUPPORTS_ADD_COLUMN_WITH_POSITION,
254254
SUPPORTS_ADD_FIELD,
255255
SUPPORTS_CREATE_MATERIALIZED_VIEW,
256+
SUPPORTS_DEFAULT_COLUMN_VALUE,
256257
SUPPORTS_DROP_FIELD,
257258
SUPPORTS_MERGE,
258259
SUPPORTS_NOT_NULL_CONSTRAINT,

plugin/trino-iceberg/src/test/java/io/trino/plugin/iceberg/BaseIcebergConnectorTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior)
238238
case SUPPORTS_CREATE_OR_REPLACE_TABLE,
239239
SUPPORTS_REPORTING_WRITTEN_BYTES -> true;
240240
case SUPPORTS_ADD_COLUMN_NOT_NULL_CONSTRAINT,
241+
SUPPORTS_DEFAULT_COLUMN_VALUE,
241242
SUPPORTS_RENAME_MATERIALIZED_VIEW_ACROSS_SCHEMAS,
242243
SUPPORTS_TOPN_PUSHDOWN -> false;
243244
default -> super.hasBehavior(connectorBehavior);

plugin/trino-ignite/src/test/java/io/trino/plugin/ignite/TestIgniteConnectorTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior)
8989
SUPPORTS_ARRAY,
9090
SUPPORTS_COMMENT_ON_COLUMN,
9191
SUPPORTS_COMMENT_ON_TABLE,
92+
SUPPORTS_DEFAULT_COLUMN_VALUE,
9293
SUPPORTS_DROP_NOT_NULL_CONSTRAINT,
9394
SUPPORTS_CREATE_SCHEMA,
9495
SUPPORTS_CREATE_TABLE_WITH_COLUMN_COMMENT,

plugin/trino-lakehouse/src/test/java/io/trino/plugin/lakehouse/TestLakehouseConnectorTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior)
8989
SUPPORTS_CREATE_FUNCTION,
9090
SUPPORTS_REPORTING_WRITTEN_BYTES -> true;
9191
case SUPPORTS_ADD_COLUMN_NOT_NULL_CONSTRAINT,
92+
SUPPORTS_DEFAULT_COLUMN_VALUE,
9293
SUPPORTS_RENAME_MATERIALIZED_VIEW_ACROSS_SCHEMAS,
9394
SUPPORTS_TOPN_PUSHDOWN -> false;
9495
default -> super.hasBehavior(connectorBehavior);

plugin/trino-memory/src/test/java/io/trino/plugin/memory/TestMemoryConnectorTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior)
9292
SUPPORTS_ADD_FIELD,
9393
SUPPORTS_AGGREGATION_PUSHDOWN,
9494
SUPPORTS_CREATE_MATERIALIZED_VIEW,
95+
SUPPORTS_DEFAULT_COLUMN_VALUE,
9596
SUPPORTS_DELETE,
9697
SUPPORTS_DEREFERENCE_PUSHDOWN,
9798
SUPPORTS_DROP_COLUMN,

plugin/trino-mongodb/src/test/java/io/trino/plugin/mongodb/TestMongoConnectorTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ protected boolean hasBehavior(TestingConnectorBehavior connectorBehavior)
104104
SUPPORTS_ADD_FIELD,
105105
SUPPORTS_CREATE_MATERIALIZED_VIEW,
106106
SUPPORTS_CREATE_VIEW,
107+
SUPPORTS_DEFAULT_COLUMN_VALUE,
107108
SUPPORTS_DROP_FIELD,
108109
SUPPORTS_MERGE,
109110
SUPPORTS_NOT_NULL_CONSTRAINT,

0 commit comments

Comments
 (0)