jiayp commented on issue #9799: URL: https://github.com/apache/iotdb/issues/9799#issuecomment-1960636636
> > > > IoTDB> select batteryVoltage, odometer from root.389d79c1a12147deaafca6b8f6b3665c.e1d1896803a34422935517b108d9bce3.03625aa0be1443cdb5bf8af89ebd69fe where time >= 2023-02-17T02:00:00 and time < 2023-02-24T02:00:00 group by time Msg: 700: Error occurred while parsing SQL to physical plan: line 1:219 no viable alternative at input 'select batteryVoltage, odometer from root.389d79c1a12147deaafca6b8f6b3665c.e1d1896803a34422935517b108d9bce3.03625aa0be1443cdb5bf8af89ebd69fe where time >= 2023-02-17T02:00:00 and time < 2023-02-24T02:00:00 group by time' > > 总是会报错 你可以看一下这个文档,里面也有相应的例子,select里面要用聚合函数比如max,min,avg这些 https://iotdb.apache.org/zh/UserGuide/V1.2.x/User-Manual/Query-Data.html#%E5%88%86%E6%AE%B5%E5%88%86%E7%BB%84%E8%81%9A%E5%90%88-group-by-%E5%AD%90%E5%8F%A5 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
