You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "xiaozhihong (Jira)" <ji...@apache.org> on 2022/01/28 10:14:00 UTC

[jira] [Created] (IOTDB-2504) The first count query in the CLI reports an exception

xiaozhihong created IOTDB-2504:
----------------------------------

             Summary: The first count query in the CLI reports an exception
                 Key: IOTDB-2504
                 URL: https://issues.apache.org/jira/browse/IOTDB-2504
             Project: Apache IoTDB
          Issue Type: Bug
          Components: Core/Server
    Affects Versions: 0.12.5
            Reporter: xiaozhihong


description:
Enter the CLI, the first execution of count reports 500 exception, and the query will be normal if executed again.
step 1: start server
step 2: enter cli
step 3: execute sql
{code:java}
[xzh@i-s9p350bm apache-iotdb-0.12.5-SNAPSHOT-all-bin]$ ./sbin/start-cli.sh
---------------------
Starting IoTDB Cli
---------------------
 _____       _________  ______   ______    
|_   _|     |  _   _  ||_   _ `.|_   _ \   
  | |   .--.|_/ | | \_|  | | `. \ | |_) |  
  | | / .'`\ \  | |      | |  | | |  __'.  
 _| |_| \__. | _| |_    _| |_.' /_| |__) | 
|_____|'.__.' |_____|  |______.'|_______/  version 0.12.5-SNAPSHOT
                                           IoTDB> login successfully
IoTDB> select count(s_0) from root.test.g_0.d_0
Msg: 500: [INTERNAL_SERVER_ERROR] Exception occurred while executing "select count(s_0) from root.test.g_0.d_0". java.lang.NullPointerException
IoTDB> select count(s_0) from root.test.g_0.d_0
+----------------------------+
|count(root.test.g_0.d_0.s_0)|
+----------------------------+
|                  2000000000|
+----------------------------+
Total line number = 1
It costs 2.169s
 {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)