Skip to content

Commit 90fc42e

Browse files
committed
Merge remote-tracking branch 'origin/feature/tibero-connector' into feature/tibero-connector
2 parents a367b8f + 848ee7f commit 90fc42e

File tree

247 files changed

+2931
-1575
lines changed

Some content is hidden

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

247 files changed

+2931
-1575
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ updates:
2020
exclude:
2121
- io.airlift:*
2222
- io.trino:*
23+
ignore:
24+
# Airbase and Airlift are best updated together. Update Airbase only when updating Airlift.
25+
- dependency-name: "io.airlift:airbase"

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ jobs:
882882
echo "Impacted plugin features:"
883883
cat impacted-features.log
884884
- name: Product tests artifact
885-
uses: actions/upload-artifact@v5
885+
uses: actions/upload-artifact@v6
886886
with:
887887
name: product tests and server tarball
888888
path: |
@@ -1061,7 +1061,7 @@ jobs:
10611061
# The job doesn't build anything, so the ~/.m2/repository cache isn't useful
10621062
cache: 'false'
10631063
- name: Product tests artifact
1064-
uses: actions/download-artifact@v6
1064+
uses: actions/download-artifact@v7
10651065
with:
10661066
name: product tests and server tarball
10671067
- name: Fix artifact permissions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
wrapperVersion=3.3.4
22
distributionType=only-script
3-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.11/apache-maven-3.9.11-bin.zip
3+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.12/apache-maven-3.9.12-bin.zip

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ After opening the project in IntelliJ, double check that the Java SDK is
8282
properly configured for the project:
8383

8484
* Open the File menu and select Project Structure
85-
* In the SDKs section, ensure that JDK 24 is selected (create one if none exist)
86-
* In the Project section, ensure the Project language level is set to 24
85+
* In the SDKs section, ensure that JDK 25 is selected (create one if none exist)
86+
* In the Project section, ensure the Project language level is set to 25
8787

8888
### Running a testing server
8989

client/trino-client/src/main/java/io/trino/client/ServerInfo.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,16 +107,20 @@ public boolean equals(Object o)
107107
if (o == null || getClass() != o.getClass()) {
108108
return false;
109109
}
110-
111110
ServerInfo that = (ServerInfo) o;
112-
return Objects.equals(nodeVersion, that.nodeVersion) &&
113-
Objects.equals(environment, that.environment);
111+
return coordinator == that.coordinator
112+
&& starting == that.starting
113+
&& Objects.equals(nodeVersion, that.nodeVersion)
114+
&& Objects.equals(environment, that.environment)
115+
&& Objects.equals(uptime, that.uptime)
116+
&& Objects.equals(coordinatorId, that.coordinatorId)
117+
&& Objects.equals(nodeId, that.nodeId);
114118
}
115119

116120
@Override
117121
public int hashCode()
118122
{
119-
return Objects.hash(nodeVersion, environment);
123+
return Objects.hash(nodeVersion, environment, coordinator, starting, uptime, coordinatorId, nodeId);
120124
}
121125

122126
@Override

client/trino-client/src/test/java/io/trino/client/TestServerInfo.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,6 @@ public void testJsonRoundTrip()
3636
assertJsonRoundTrip(new ServerInfo(UNKNOWN, "test", true, false, Optional.empty(), Optional.empty(), Optional.empty()));
3737
}
3838

39-
@Test
40-
public void testBackwardsCompatible()
41-
{
42-
ServerInfo newServerInfo = new ServerInfo(UNKNOWN, "test", true, false, Optional.empty(), Optional.empty(), Optional.empty());
43-
ServerInfo legacyServerInfo = SERVER_INFO_CODEC.fromJson("{\"nodeVersion\":{\"version\":\"<unknown>\"},\"environment\":\"test\",\"coordinator\":true}");
44-
assertThat(newServerInfo).isEqualTo(legacyServerInfo);
45-
}
46-
4739
private static void assertJsonRoundTrip(ServerInfo serverInfo)
4840
{
4941
String json = SERVER_INFO_CODEC.toJson(serverInfo);

core/trino-main/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
</properties>
2020

2121
<dependencies>
22+
2223
<dependency>
2324
<groupId>com.clearspring.analytics</groupId>
2425
<artifactId>stream</artifactId>
@@ -342,6 +343,11 @@
342343
<artifactId>joda-time</artifactId>
343344
</dependency>
344345

346+
<dependency>
347+
<groupId>org.antlr</groupId>
348+
<artifactId>antlr4-runtime</artifactId>
349+
</dependency>
350+
345351
<dependency>
346352
<groupId>org.apache.commons</groupId>
347353
<artifactId>commons-math3</artifactId>
@@ -582,5 +588,11 @@
582588
</plugin>
583589
</plugins>
584590
</pluginManagement>
591+
<plugins>
592+
<plugin>
593+
<groupId>org.antlr</groupId>
594+
<artifactId>antlr4-maven-plugin</artifactId>
595+
</plugin>
596+
</plugins>
585597
</build>
586598
</project>

core/trino-grammar/src/main/antlr4/io/trino/grammar/type/TypeCalculation.g4 renamed to core/trino-main/src/main/antlr4/io/trino/type/TypeCalculation.g4

File renamed without changes.

core/trino-main/src/main/java/io/trino/connector/system/MaterializedViewSystemTable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ private void addMaterializedViewForCatalog(Session session, InMemoryRecordSet.Bu
170170

171171
if (needFreshness) {
172172
try {
173-
freshness = Optional.of(metadata.getMaterializedViewFreshness(session, name));
173+
freshness = Optional.of(metadata.getMaterializedViewFreshness(session, name, false));
174174
}
175175
catch (MaterializedViewNotFoundException e) {
176176
// Ignore materialized view that was dropped during query execution (race condition)
@@ -196,7 +196,7 @@ private void addMaterializedViewForCatalog(Session session, InMemoryRecordSet.Bu
196196
.map(Enum::name)
197197
.orElse(null),
198198
// last_fresh_time
199-
freshness.flatMap(MaterializedViewFreshness::getLastFreshTime)
199+
freshness.flatMap(MaterializedViewFreshness::getLastKnownFreshTime)
200200
.map(instant -> LongTimestampWithTimeZone.fromEpochSecondsAndFraction(
201201
instant.getEpochSecond(),
202202
(long) instant.getNano() * PICOSECONDS_PER_NANOSECOND,

core/trino-main/src/main/java/io/trino/connector/system/RuleStatsSystemTable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import io.trino.spi.connector.SchemaTableName;
2929
import io.trino.spi.connector.SystemTable;
3030
import io.trino.spi.predicate.TupleDomain;
31+
import io.trino.spi.type.MapType;
3132
import io.trino.spi.type.TypeManager;
3233
import io.trino.sql.planner.RuleStatsRecorder;
3334
import io.trino.sql.planner.iterative.RuleStats;
@@ -41,7 +42,6 @@
4142
import static io.trino.spi.connector.SystemTable.Distribution.SINGLE_COORDINATOR;
4243
import static io.trino.spi.type.BigintType.BIGINT;
4344
import static io.trino.spi.type.DoubleType.DOUBLE;
44-
import static io.trino.spi.type.TypeSignature.mapType;
4545
import static io.trino.spi.type.VarcharType.VARCHAR;
4646
import static java.util.Objects.requireNonNull;
4747

@@ -64,7 +64,7 @@ public RuleStatsSystemTable(Optional<RuleStatsRecorder> ruleStatsRecorder, TypeM
6464
.column("matches", BIGINT)
6565
.column("failures", BIGINT)
6666
.column("average_time", DOUBLE)
67-
.column("time_distribution_percentiles", typeManager.getType(mapType(DOUBLE.getTypeSignature(), DOUBLE.getTypeSignature())))
67+
.column("time_distribution_percentiles", new MapType(DOUBLE, DOUBLE, typeManager.getTypeOperators()))
6868
.build();
6969
}
7070

0 commit comments

Comments
 (0)