ZhangChao created CALCITE-4447:
----------------------------------
Summary: Using calcite-redis to query redis, the main thread does
not exit
Key: CALCITE-4447
URL: https://issues.apache.org/jira/browse/CALCITE-4447
Project: Calcite
Issue Type: Bug
Affects Versions: 1.26.0, 1.25.0, 1.24.0, 1.23.0, 1.22.0
Reporter: ZhangChao
I use calcite-redis(1.26.0) module to query redis data, the main thread does
not exit. Then I tried a lot of old versions, the phenomenon were the same.
But I use the master branch source to build the 1.27.0-SNAPSHOT, the query
problem disappeared.
Code:
{code:java}
public class Main {
public static void main(String[] args) throws SQLException {
String path = args[0];
try(Connection connection =
DriverManager.getConnection("jdbc:calcite:model=" + path)) {
try (CalciteConnection calciteConn =
connection.unwrap(CalciteConnection.class)) {
try (Statement st = calciteConn.createStatement()) {
try (ResultSet result = st.executeQuery("select ID, NAME
from \"demo_01\"")) {
while (result.next()) {
System.out.println(result.getString("ID") + "||" +
result.getString("NAME"));
}
}
}
}
}
}
}
{code}
{{}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)