14
14
package io .trino .spi .connector ;
15
15
16
16
import io .airlift .slice .Slice ;
17
- import io .trino .spi .Experimental ;
18
17
import io .trino .spi .RefreshType ;
19
18
import io .trino .spi .TrinoException ;
20
19
import io .trino .spi .expression .Call ;
@@ -333,7 +332,6 @@ default Iterator<TableColumnsMetadata> streamTableColumns(ConnectorSession sessi
333
332
* (e.g. for all relations that would be returned by {@link #listTables(ConnectorSession, Optional)}).
334
333
* Redirected table names are included, but the comment for them is not.
335
334
*/
336
- @ Experimental (eta = "2024-01-01" )
337
335
default Iterator <RelationColumnsMetadata > streamRelationColumns (
338
336
ConnectorSession session ,
339
337
Optional <String > schemaName ,
@@ -372,7 +370,6 @@ default Iterator<RelationColumnsMetadata> streamRelationColumns(
372
370
* (e.g. for all relations that would be returned by {@link #listTables(ConnectorSession, Optional)}).
373
371
* Redirected table names are included, but the comment for them is not.
374
372
*/
375
- @ Experimental (eta = "2024-01-01" )
376
373
default Iterator <RelationCommentMetadata > streamRelationComments (ConnectorSession session , Optional <String > schemaName , UnaryOperator <Set <SchemaTableName >> relationFilter )
377
374
{
378
375
List <RelationCommentMetadata > materializedViews = getMaterializedViews (session , schemaName ).entrySet ().stream ()
@@ -573,7 +570,7 @@ default void addColumn(ConnectorSession session, ConnectorTableHandle tableHandl
573
570
*
574
571
* @param parentPath path to a field within the column, without leaf field name.
575
572
*/
576
- @ Experimental ( eta = "2023-06-01" ) // TODO add support for rows inside arrays and maps and for anonymous row fields
573
+ // TODO add support for rows inside arrays and maps and for anonymous row fields
577
574
default void addField (ConnectorSession session , ConnectorTableHandle tableHandle , List <String > parentPath , String fieldName , Type type , boolean ignoreExisting )
578
575
{
579
576
throw new TrinoException (NOT_SUPPORTED , "This connector does not support adding fields" );
@@ -582,7 +579,6 @@ default void addField(ConnectorSession session, ConnectorTableHandle tableHandle
582
579
/**
583
580
* Set the specified column type
584
581
*/
585
- @ Experimental (eta = "2023-04-01" )
586
582
default void setColumnType (ConnectorSession session , ConnectorTableHandle tableHandle , ColumnHandle column , Type type )
587
583
{
588
584
throw new TrinoException (NOT_SUPPORTED , "This connector does not support setting column types" );
@@ -593,7 +589,6 @@ default void setColumnType(ConnectorSession session, ConnectorTableHandle tableH
593
589
*
594
590
* @param fieldPath path starting with column name. The path is always lower-cased. It cannot be an empty or a single element.
595
591
*/
596
- @ Experimental (eta = "2023-09-01" )
597
592
default void setFieldType (ConnectorSession session , ConnectorTableHandle tableHandle , List <String > fieldPath , Type type )
598
593
{
599
594
throw new TrinoException (NOT_SUPPORTED , "This connector does not support setting field types" );
@@ -629,7 +624,7 @@ default void renameColumn(ConnectorSession session, ConnectorTableHandle tableHa
629
624
* @param fieldPath path starting with column name.
630
625
* @param target the new field name. The field position and nested level shouldn't be changed.
631
626
*/
632
- @ Experimental ( eta = "2023-09-01" ) // TODO add support for rows inside arrays and maps and for anonymous row fields
627
+ // TODO add support for rows inside arrays and maps and for anonymous row fields
633
628
default void renameField (ConnectorSession session , ConnectorTableHandle tableHandle , List <String > fieldPath , String target )
634
629
{
635
630
throw new TrinoException (NOT_SUPPORTED , "This connector does not support renaming fields" );
@@ -648,7 +643,7 @@ default void dropColumn(ConnectorSession session, ConnectorTableHandle tableHand
648
643
*
649
644
* @param fieldPath path to a field within the column, without leading column name.
650
645
*/
651
- @ Experimental ( eta = "2023-05-01" ) // TODO add support for rows inside arrays and maps and for anonymous row fields
646
+ // TODO add support for rows inside arrays and maps and for anonymous row fields
652
647
default void dropField (ConnectorSession session , ConnectorTableHandle tableHandle , ColumnHandle column , List <String > fieldPath )
653
648
{
654
649
throw new TrinoException (NOT_SUPPORTED , "This connector does not support dropping fields" );
@@ -667,7 +662,6 @@ default Optional<ConnectorTableLayout> getNewTableLayout(ConnectorSession sessio
667
662
* If {@link Optional#empty()} is returned, the type will be used as is during table creation which may or may not be supported by the connector.
668
663
* The effective type shall be a type that is cast-compatible with the input type.
669
664
*/
670
- @ Experimental (eta = "2024-01-31" )
671
665
default Optional <Type > getSupportedType (ConnectorSession session , Map <String , Object > tableProperties , Type type )
672
666
{
673
667
return Optional .empty ();
@@ -975,7 +969,6 @@ default boolean isView(ConnectorSession session, SchemaTableName viewName)
975
969
/**
976
970
* Gets the view properties for the specified view.
977
971
*/
978
- @ Experimental (eta = "2024-06-01" )
979
972
default Map <String , Object > getViewProperties (ConnectorSession session , SchemaTableName viewName )
980
973
{
981
974
return Map .of ();
@@ -1132,7 +1125,6 @@ default void dropLanguageFunction(ConnectorSession session, SchemaFunctionName n
1132
1125
/**
1133
1126
* Creates the specified branch.
1134
1127
*/
1135
- @ Experimental (eta = "2025-12-31" )
1136
1128
default void createBranch (ConnectorSession session , ConnectorTableHandle tableHandle , String branch , Map <String , Object > properties )
1137
1129
{
1138
1130
throw new TrinoException (NOT_SUPPORTED , "This connector does not support creating branches" );
@@ -1141,7 +1133,6 @@ default void createBranch(ConnectorSession session, ConnectorTableHandle tableHa
1141
1133
/**
1142
1134
* Drops the specified branch.
1143
1135
*/
1144
- @ Experimental (eta = "2025-12-31" )
1145
1136
default void dropBranch (ConnectorSession session , ConnectorTableHandle tableHandle , String branch )
1146
1137
{
1147
1138
throw new TrinoException (NOT_SUPPORTED , "This connector does not support dropping branches" );
@@ -1150,7 +1141,6 @@ default void dropBranch(ConnectorSession session, ConnectorTableHandle tableHand
1150
1141
/**
1151
1142
* Fast-forwards the specified branch.
1152
1143
*/
1153
- @ Experimental (eta = "2025-12-31" )
1154
1144
default void fastForwardBranch (ConnectorSession session , ConnectorTableHandle tableHandle , String sourceBranch , String targetBranch )
1155
1145
{
1156
1146
throw new TrinoException (NOT_SUPPORTED , "This connector does not support fast-forwarding branches" );
@@ -1159,7 +1149,6 @@ default void fastForwardBranch(ConnectorSession session, ConnectorTableHandle ta
1159
1149
/**
1160
1150
* Get all branches.
1161
1151
*/
1162
- @ Experimental (eta = "2025-12-31" )
1163
1152
default Collection <String > listBranches (ConnectorSession session , SchemaTableName tableName )
1164
1153
{
1165
1154
return List .of ();
@@ -1168,7 +1157,6 @@ default Collection<String> listBranches(ConnectorSession session, SchemaTableNam
1168
1157
/**
1169
1158
* Does the specified branch exist.
1170
1159
*/
1171
- @ Experimental (eta = "2025-12-31" )
1172
1160
default boolean branchExists (ConnectorSession session , SchemaTableName tableName , String branch )
1173
1161
{
1174
1162
return listBranches (session , tableName ).contains (branch );
0 commit comments