yang caiyin created IOTDB-6337:
----------------------------------

             Summary: Wrong header in show active metadata when result is empty.
                 Key: IOTDB-6337
                 URL: https://issues.apache.org/jira/browse/IOTDB-6337
             Project: Apache IoTDB
          Issue Type: Bug
          Components: Core/Query
            Reporter: yang caiyin


In general metaQuery, if the resultSet is empty, we may get the following 
results (/):
{code:java}
IoTDB> show timeseries
+----------+-----+--------+--------+--------+-----------+----+----------+--------+------------------+--------+
|Timeseries|Alias|Database|DataType|Encoding|Compression|Tags|Attributes|Deadband|DeadbandParameters|ViewType|
+----------+-----+--------+--------+--------+-----------+----+----------+--------+------------------+--------+
+----------+-----+--------+--------+--------+-----------+----+----------+--------+------------------+--------+
IoTDB> show devices
+------+---------+--------+---+
|Device|IsAligned|Template|TTL|
+------+---------+--------+---+
+------+---------+--------+---+
IoTDB> count timeseries
+-----------------+
|count(timeseries)|
+-----------------+
|                0|
+-----------------+
IoTDB> count devices
+--------------+
|count(devices)|
+--------------+
|             0|
+--------------+
{code}
But in active metadata query, we get the following confusing results :(
{code:java}
IoTDB> show timeseries where time < 6
+----+
|Time|
+----+
+----+
IoTDB> show devices where time < 6
+----+
|Time|
+----+
+----+
IoTDB> count timeseries where time < 6
Msg: 305: [INTERNAL_SERVER_ERROR(305)] Exception occurred: "count timeseries 
where time < 6". executeStatement failed. null 
IoTDB> count devices where time < 6
Msg: 305: [INTERNAL_SERVER_ERROR(305)] Exception occurred: "count devices where 
time < 6". executeStatement failed. null{code}
We should fix and unify these. (flag)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to