You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by gi...@apache.org on 2025/03/18 04:14:08 UTC
(calcite) branch site updated: [CALCITE-6895] Change JdbcTest.testVersion to strictly match minor version in gradle.properties
This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch site
in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/site by this push:
new b71a4c721d [CALCITE-6895] Change JdbcTest.testVersion to strictly match minor version in gradle.properties
b71a4c721d is described below
commit b71a4c721d7b34290e2801a2a90e1857dc6dbbe3
Author: Stamatis Zampetakis <za...@gmail.com>
AuthorDate: Sun Mar 16 13:05:37 2025 +0100
[CALCITE-6895] Change JdbcTest.testVersion to strictly match minor version in gradle.properties
---
core/src/test/java/org/apache/calcite/test/JdbcTest.java | 2 +-
site/_docs/howto.md | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/core/src/test/java/org/apache/calcite/test/JdbcTest.java b/core/src/test/java/org/apache/calcite/test/JdbcTest.java
index 590e2beb47..b53c71599d 100644
--- a/core/src/test/java/org/apache/calcite/test/JdbcTest.java
+++ b/core/src/test/java/org/apache/calcite/test/JdbcTest.java
@@ -989,7 +989,7 @@ static void checkMockDdl(AtomicInteger counter, boolean hasCommit,
final int driverMajor = metaData.getDriverMajorVersion();
final int driverMinor = metaData.getDriverMinorVersion();
assertThat(driverMajor, is(1));
- assertTrue(driverMinor >= 0 && driverMinor < 40);
+ assertThat(driverMinor, is(40));
assertThat(metaData.getDatabaseProductName(), is("Calcite"));
final String databaseVersion =
diff --git a/site/_docs/howto.md b/site/_docs/howto.md
index 72ffa7ca5a..8b239774b7 100644
--- a/site/_docs/howto.md
+++ b/site/_docs/howto.md
@@ -1041,9 +1041,10 @@ # If you prefer to use GitHub account, change pushRepositoryProvider to GITHUB
reflect state of the next release, change the fixVersion in the [JIRA filter powering the dashboard](https://issues.apache.org/jira/issues/?filter=12346388)
and save the changes.
-Increase the `calcite.version` value in `/gradle.properties`, commit and push
+Increase the `calcite.version` value in `/gradle.properties`, and update `JdbcTest.testVersion` accordingly.
+Ensure that build and test pass and then commit and push
the change with the message "Prepare for next development iteration"
-(see [ed1470a](https://github.com/apache/calcite/commit/ed1470a3ea53a78c667354a5ec066425364eca73) as a reference)
+(see [ed1470a](https://github.com/apache/calcite/commit/ed1470a3ea53a78c667354a5ec066425364eca73) as a reference).
Re-open the `main` branch. Send an email to [dev@calcite.apache.org](mailto:dev@calcite.apache.org) notifying
that `main` code freeze is over and commits can resume.