Skip to content

Commit 5b81408

Browse files
committed
Remove @Experimental annotation
This annotation isn't maintained well.
1 parent e933971 commit 5b81408

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+11
-192
lines changed

core/trino-spi/pom.xml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,6 @@
185185
<skip>${trino.check.skip-revapi}</skip>
186186
<ignoreSuggestionsFormat>xml</ignoreSuggestionsFormat>
187187
<analysisConfiguration>
188-
<revapi.filter>
189-
<elements>
190-
<exclude>
191-
<item>
192-
<matcher>java</matcher>
193-
<match>@io.trino.spi.Experimental(*) ^*;</match>
194-
</item>
195-
</exclude>
196-
</elements>
197-
</revapi.filter>
198188
<revapi.differences>
199189
<ignore>true</ignore>
200190
<differences>
@@ -664,6 +654,14 @@
664654
<old>method java.lang.String io.trino.spi.NodeManager::getEnvironment()</old>
665655
<justification>Unused</justification>
666656
</item>
657+
<item>
658+
<code>java.class.removed</code>
659+
<annotationType>@interface io.trino.spi.Experimental</annotationType>
660+
</item>
661+
<item>
662+
<code>java.annotation.removed</code>
663+
<annotationType>io.trino.spi.Experimental</annotationType>
664+
</item>
667665
</differences>
668666
</revapi.differences>
669667
</analysisConfiguration>

core/trino-spi/src/main/java/io/trino/spi/Experimental.java

Lines changed: 0 additions & 44 deletions
This file was deleted.

core/trino-spi/src/main/java/io/trino/spi/block/IntArrayBlock.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
*/
1414
package io.trino.spi.block;
1515

16-
import io.trino.spi.Experimental;
1716
import jakarta.annotation.Nullable;
1817

1918
import java.util.Optional;
@@ -231,13 +230,11 @@ boolean[] getRawValueIsNull()
231230
return valueIsNull;
232231
}
233232

234-
@Experimental(eta = "2023-12-31")
235233
public int[] getRawValues()
236234
{
237235
return values;
238236
}
239237

240-
@Experimental(eta = "2023-12-31")
241238
public int getRawValuesOffset()
242239
{
243240
return arrayOffset;

core/trino-spi/src/main/java/io/trino/spi/block/ValueBlock.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
*/
1414
package io.trino.spi.block;
1515

16-
import io.trino.spi.Experimental;
17-
1816
import java.util.Optional;
1917

2018
public non-sealed interface ValueBlock
@@ -49,6 +47,5 @@ default int getUnderlyingValuePosition(int position)
4947
* Returns Optional.empty() when there are no NULLs in the Block.
5048
* The returned ByteArrayBlock must not contain NULL values.
5149
*/
52-
@Experimental(eta = "2025-01-01")
5350
Optional<ByteArrayBlock> getNulls();
5451
}

core/trino-spi/src/main/java/io/trino/spi/connector/CatalogHandle.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
import com.fasterxml.jackson.annotation.JsonCreator;
1717
import com.fasterxml.jackson.annotation.JsonValue;
18-
import io.trino.spi.Experimental;
1918
import io.trino.spi.catalog.CatalogName;
2019

2120
import java.util.Objects;
@@ -28,7 +27,6 @@
2827
import static java.util.Locale.ROOT;
2928
import static java.util.Objects.requireNonNull;
3029

31-
@Experimental(eta = "2023-02-01")
3230
public final class CatalogHandle
3331
{
3432
private static final int INSTANCE_SIZE = instanceSize(CatalogHandle.class);
@@ -169,7 +167,6 @@ public boolean isInternal()
169167
}
170168
}
171169

172-
@Experimental(eta = "2023-02-01")
173170
public static final class CatalogVersion
174171
{
175172
private static final int INSTANCE_SIZE = instanceSize(CatalogVersion.class);

core/trino-spi/src/main/java/io/trino/spi/connector/Connector.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
*/
1414
package io.trino.spi.connector;
1515

16-
import io.trino.spi.Experimental;
1716
import io.trino.spi.function.FunctionProvider;
1817
import io.trino.spi.function.table.ConnectorTableFunction;
1918
import io.trino.spi.procedure.Procedure;
@@ -127,7 +126,6 @@ default Set<SystemTable> getSystemTables()
127126
/**
128127
* @return the set of procedures provided by this connector
129128
*/
130-
@Experimental(eta = "2022-10-31")
131129
default Optional<FunctionProvider> getFunctionProvider()
132130
{
133131
return Optional.empty();

core/trino-spi/src/main/java/io/trino/spi/connector/ConnectorMetadata.java

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
package io.trino.spi.connector;
1515

1616
import io.airlift.slice.Slice;
17-
import io.trino.spi.Experimental;
1817
import io.trino.spi.RefreshType;
1918
import io.trino.spi.TrinoException;
2019
import io.trino.spi.expression.Call;
@@ -333,7 +332,6 @@ default Iterator<TableColumnsMetadata> streamTableColumns(ConnectorSession sessi
333332
* (e.g. for all relations that would be returned by {@link #listTables(ConnectorSession, Optional)}).
334333
* Redirected table names are included, but the comment for them is not.
335334
*/
336-
@Experimental(eta = "2024-01-01")
337335
default Iterator<RelationColumnsMetadata> streamRelationColumns(
338336
ConnectorSession session,
339337
Optional<String> schemaName,
@@ -372,7 +370,6 @@ default Iterator<RelationColumnsMetadata> streamRelationColumns(
372370
* (e.g. for all relations that would be returned by {@link #listTables(ConnectorSession, Optional)}).
373371
* Redirected table names are included, but the comment for them is not.
374372
*/
375-
@Experimental(eta = "2024-01-01")
376373
default Iterator<RelationCommentMetadata> streamRelationComments(ConnectorSession session, Optional<String> schemaName, UnaryOperator<Set<SchemaTableName>> relationFilter)
377374
{
378375
List<RelationCommentMetadata> materializedViews = getMaterializedViews(session, schemaName).entrySet().stream()
@@ -573,7 +570,7 @@ default void addColumn(ConnectorSession session, ConnectorTableHandle tableHandl
573570
*
574571
* @param parentPath path to a field within the column, without leaf field name.
575572
*/
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
577574
default void addField(ConnectorSession session, ConnectorTableHandle tableHandle, List<String> parentPath, String fieldName, Type type, boolean ignoreExisting)
578575
{
579576
throw new TrinoException(NOT_SUPPORTED, "This connector does not support adding fields");
@@ -582,7 +579,6 @@ default void addField(ConnectorSession session, ConnectorTableHandle tableHandle
582579
/**
583580
* Set the specified column type
584581
*/
585-
@Experimental(eta = "2023-04-01")
586582
default void setColumnType(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle column, Type type)
587583
{
588584
throw new TrinoException(NOT_SUPPORTED, "This connector does not support setting column types");
@@ -593,7 +589,6 @@ default void setColumnType(ConnectorSession session, ConnectorTableHandle tableH
593589
*
594590
* @param fieldPath path starting with column name. The path is always lower-cased. It cannot be an empty or a single element.
595591
*/
596-
@Experimental(eta = "2023-09-01")
597592
default void setFieldType(ConnectorSession session, ConnectorTableHandle tableHandle, List<String> fieldPath, Type type)
598593
{
599594
throw new TrinoException(NOT_SUPPORTED, "This connector does not support setting field types");
@@ -629,7 +624,7 @@ default void renameColumn(ConnectorSession session, ConnectorTableHandle tableHa
629624
* @param fieldPath path starting with column name.
630625
* @param target the new field name. The field position and nested level shouldn't be changed.
631626
*/
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
633628
default void renameField(ConnectorSession session, ConnectorTableHandle tableHandle, List<String> fieldPath, String target)
634629
{
635630
throw new TrinoException(NOT_SUPPORTED, "This connector does not support renaming fields");
@@ -648,7 +643,7 @@ default void dropColumn(ConnectorSession session, ConnectorTableHandle tableHand
648643
*
649644
* @param fieldPath path to a field within the column, without leading column name.
650645
*/
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
652647
default void dropField(ConnectorSession session, ConnectorTableHandle tableHandle, ColumnHandle column, List<String> fieldPath)
653648
{
654649
throw new TrinoException(NOT_SUPPORTED, "This connector does not support dropping fields");
@@ -667,7 +662,6 @@ default Optional<ConnectorTableLayout> getNewTableLayout(ConnectorSession sessio
667662
* 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.
668663
* The effective type shall be a type that is cast-compatible with the input type.
669664
*/
670-
@Experimental(eta = "2024-01-31")
671665
default Optional<Type> getSupportedType(ConnectorSession session, Map<String, Object> tableProperties, Type type)
672666
{
673667
return Optional.empty();
@@ -975,7 +969,6 @@ default boolean isView(ConnectorSession session, SchemaTableName viewName)
975969
/**
976970
* Gets the view properties for the specified view.
977971
*/
978-
@Experimental(eta = "2024-06-01")
979972
default Map<String, Object> getViewProperties(ConnectorSession session, SchemaTableName viewName)
980973
{
981974
return Map.of();
@@ -1132,7 +1125,6 @@ default void dropLanguageFunction(ConnectorSession session, SchemaFunctionName n
11321125
/**
11331126
* Creates the specified branch.
11341127
*/
1135-
@Experimental(eta = "2025-12-31")
11361128
default void createBranch(ConnectorSession session, ConnectorTableHandle tableHandle, String branch, Map<String, Object> properties)
11371129
{
11381130
throw new TrinoException(NOT_SUPPORTED, "This connector does not support creating branches");
@@ -1141,7 +1133,6 @@ default void createBranch(ConnectorSession session, ConnectorTableHandle tableHa
11411133
/**
11421134
* Drops the specified branch.
11431135
*/
1144-
@Experimental(eta = "2025-12-31")
11451136
default void dropBranch(ConnectorSession session, ConnectorTableHandle tableHandle, String branch)
11461137
{
11471138
throw new TrinoException(NOT_SUPPORTED, "This connector does not support dropping branches");
@@ -1150,7 +1141,6 @@ default void dropBranch(ConnectorSession session, ConnectorTableHandle tableHand
11501141
/**
11511142
* Fast-forwards the specified branch.
11521143
*/
1153-
@Experimental(eta = "2025-12-31")
11541144
default void fastForwardBranch(ConnectorSession session, ConnectorTableHandle tableHandle, String sourceBranch, String targetBranch)
11551145
{
11561146
throw new TrinoException(NOT_SUPPORTED, "This connector does not support fast-forwarding branches");
@@ -1159,7 +1149,6 @@ default void fastForwardBranch(ConnectorSession session, ConnectorTableHandle ta
11591149
/**
11601150
* Get all branches.
11611151
*/
1162-
@Experimental(eta = "2025-12-31")
11631152
default Collection<String> listBranches(ConnectorSession session, SchemaTableName tableName)
11641153
{
11651154
return List.of();
@@ -1168,7 +1157,6 @@ default Collection<String> listBranches(ConnectorSession session, SchemaTableNam
11681157
/**
11691158
* Does the specified branch exist.
11701159
*/
1171-
@Experimental(eta = "2025-12-31")
11721160
default boolean branchExists(ConnectorSession session, SchemaTableName tableName, String branch)
11731161
{
11741162
return listBranches(session, tableName).contains(branch);

core/trino-spi/src/main/java/io/trino/spi/connector/ConnectorSplitManager.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
*/
1414
package io.trino.spi.connector;
1515

16-
import io.trino.spi.Experimental;
1716
import io.trino.spi.function.table.ConnectorTableFunctionHandle;
1817

1918
public interface ConnectorSplitManager
@@ -28,7 +27,6 @@ default ConnectorSplitSource getSplits(
2827
throw new UnsupportedOperationException();
2928
}
3029

31-
@Experimental(eta = "2023-07-31")
3230
default ConnectorSplitSource getSplits(
3331
ConnectorTransactionHandle transaction,
3432
ConnectorSession session,

core/trino-spi/src/main/java/io/trino/spi/connector/ConnectorTableMetadata.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
*/
1414
package io.trino.spi.connector;
1515

16-
import io.trino.spi.Experimental;
17-
1816
import java.util.Collections;
1917
import java.util.LinkedHashMap;
2018
import java.util.List;
@@ -48,7 +46,6 @@ public ConnectorTableMetadata(SchemaTableName table, List<ColumnMetadata> column
4846
this(table, columns, properties, comment, List.of());
4947
}
5048

51-
@Experimental(eta = "2023-03-31")
5249
public ConnectorTableMetadata(SchemaTableName table, List<ColumnMetadata> columns, Map<String, Object> properties, Optional<String> comment, List<String> checkConstraints)
5350
{
5451
requireNonNull(table, "table is null");
@@ -90,7 +87,6 @@ public Optional<String> getComment()
9087
*
9188
* @return List of string representation of a Trino SQL scalar expression that can refer to table columns by name and produces a result coercible to boolean
9289
*/
93-
@Experimental(eta = "2023-03-31")
9490
public List<String> getCheckConstraints()
9591
{
9692
return checkConstraints;

core/trino-spi/src/main/java/io/trino/spi/connector/ConnectorTableSchema.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
*/
1414
package io.trino.spi.connector;
1515

16-
import io.trino.spi.Experimental;
17-
1816
import java.util.List;
1917
import java.util.StringJoiner;
2018

@@ -31,7 +29,6 @@ public ConnectorTableSchema(SchemaTableName table, List<ColumnSchema> columns)
3129
this(table, columns, List.of());
3230
}
3331

34-
@Experimental(eta = "2023-03-31")
3532
public ConnectorTableSchema(SchemaTableName table, List<ColumnSchema> columns, List<String> checkConstraints)
3633
{
3734
requireNonNull(table, "table is null");
@@ -60,7 +57,6 @@ public List<ColumnSchema> getColumns()
6057
*
6158
* @return List of string representation of a Trino SQL scalar expression that can refer to table columns by name and produces a result coercible to boolean
6259
*/
63-
@Experimental(eta = "2023-03-31")
6460
public List<String> getCheckConstraints()
6561
{
6662
return checkConstraints;

0 commit comments

Comments
 (0)