[
https://issues.apache.org/jira/browse/IOTDB-6337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17852283#comment-17852283
]
yang caiyin commented on IOTDB-6337:
------------------------------------
BTW, I found the logic of pushing down count calculation to RegionScan Operator
is missing. I also support that in this issue.
> Wrong header in show active metadata when schema 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 schema 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)