This is an automated email from the ASF dual-hosted git repository.

suibianwanwan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/calcite.git


The following commit(s) were added to refs/heads/main by this push:
     new 9b51667eeb [CALCITE-6895] Change JdbcTest.testVersion to strictly 
match minor version in gradle.properties
9b51667eeb is described below

commit 9b51667eebc825d5d3ece72cfcdb5d2efaa2d56f
Author: Stamatis Zampetakis <[email protected]>
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 
[[email protected]](mailto:[email protected]) notifying
 that `main` code freeze is over and commits can resume.

Reply via email to