一个有关排序查询的问题(A problem about sort query) #3888
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
谢谢你的提问 :D
我猜你是想要类似 align by device 这样的表结构作为返回结果集? Thanks for your questions!
The output result of the In your scenario, each top_k output column has at most one non-null data point. Currently, you can get the filtering status by judging the position of the non-null value. I guess you want a table structure like align by device as the return result set? |
Beta Was this translation helpful? Give feedback.
谢谢你的提问 :D
top_k
这个函数的输出结果本质还是一个时间序列。select 多个时间序列的时候,结果集是默认按照多列的时间戳归并对齐的。在你的场景下,每一个 top_k 的输出列最多只有一个非 null 的数据点,目前可以通过判断非 null 值的位置来获取过滤情况。
我猜你是想要类似 align by device 这样的表结构作为返回结果集?
Thanks for your questions!
The output result of the
top_k
function is essentially a time series. When selecting multipl…