You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Stamatis Zampetakis (Jira)" <ji...@apache.org> on 2020/12/28 23:12:00 UTC

[jira] [Resolved] (CALCITE-4447) Using calcite-redis to query redis, the main thread does not exit

     [ https://issues.apache.org/jira/browse/CALCITE-4447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stamatis Zampetakis resolved CALCITE-4447.
------------------------------------------
    Fix Version/s: 1.27.0
       Resolution: Cannot Reproduce

Thanks for reporting this [~chaoz]. Given that the problem no longer appears in master I am marking this as resolved. We do not do patch releases so I guess there is nothing to be done.

> 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.22.0, 1.23.0, 1.24.0, 1.25.0, 1.26.0
>            Reporter: ZhangChao
>            Priority: Major
>             Fix For: 1.27.0
>
>
> 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)