You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by vl...@apache.org on 2021/03/24 08:07:20 UTC
[calcite] branch master updated: Remove use of testRuntime from the
build script
This is an automated email from the ASF dual-hosted git repository.
vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite.git
The following commit(s) were added to refs/heads/master by this push:
new 7bb23ed Remove use of testRuntime from the build script
7bb23ed is described below
commit 7bb23ed592c06c9ccdf30f5cc099c355aa995eb1
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Wed Mar 24 10:12:17 2021 +0300
Remove use of testRuntime from the build script
---
build.gradle.kts | 3 ++-
.../test/java/org/apache/calcite/test/JdbcTest.java | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/build.gradle.kts b/build.gradle.kts
index 138a391..1550aa9 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -790,7 +790,8 @@ allprojects {
}
val testClasses by configurations.creating {
- extendsFrom(configurations["testRuntime"])
+ isCanBeConsumed = true
+ isCanBeResolved = false
}
val archives by configurations.getting
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 45b0ab0..839342a 100644
--- a/core/src/test/java/org/apache/calcite/test/JdbcTest.java
+++ b/core/src/test/java/org/apache/calcite/test/JdbcTest.java
@@ -3388,6 +3388,26 @@ public class JdbcTest {
+ "empid=200; deptno=20; name=Eric; salary=8000.0; commission=500\n");
}
+ @Test void testLimitStar2() throws Exception {
+ CalciteAssert.hr()
+ .doWithConnection(c -> {
+ try {
+ PreparedStatement ps = c.prepareStatement("select * from \"hr\".\"emps\"\n"
+ + "limit ?");
+ ps.setLong(1, 1L << 32);
+ ResultSet resultSet = ps.executeQuery();
+ System.out.println("resultSet = " + resultSet.next());
+ } catch (SQLException throwables) {
+ throwables.printStackTrace();
+ }
+ });
+// .returns(""
+// + "empid=100; deptno=10; name=Bill; salary=10000.0; commission=1000\n"
+// + "empid=200; deptno=20; name=Eric; salary=8000.0; commission=500\n"
+// + "empid=150; deptno=10; name=Sebastian; salary=7000.0; commission=null\n"
+// + "empid=110; deptno=10; name=Theodore; salary=11500.0; commission=250\n");
+ }
+
/** Limit implemented using {@link Queryable#take}. Test case for
* <a href="https://issues.apache.org/jira/browse/CALCITE-96">[CALCITE-96]
* LIMIT against a table in a clone schema causes