You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "yang caiyin (Jira)" <ji...@apache.org> on 2024/06/05 03:01:00 UTC
[jira] [Assigned] (IOTDB-6337) Wrong header in show active metadata when result is empty.
[ https://issues.apache.org/jira/browse/IOTDB-6337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
yang caiyin reassigned IOTDB-6337:
----------------------------------
Assignee: yang caiyin
> 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
> Assignee: yang caiyin
> Priority: Major
>
> 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)