kr11 opened a new pull request #2447: URL: https://github.com/apache/iotdb/pull/2447
## Description Fix bugs on query statements that ignore timestamps, namely, the result's first column is not `time`. ### Changing executeQuery Referring to `org.apache.iotdb.cli.AbstractCli`, use `isIgnoreTimeStamp` to justify whether the result table has a timestamp column. ### Adding Test Including: * testShowAllTTL * testShowDevices * testShowStorageGroup * testShowTimeseries * testShowTTL * testShowVersion ### Code Optimization Encapsulate `stringBuilder.deleteCharAt(stringBuilder.length() - 1)` everywhere into the function `deleteLast(StringBuilder stringBuilder)` <hr> This PR has: - [x] been self-reviewed. - [x] test zeppelin on MacOS 10.14.1, Chrome 87.0.4280.141. - [x] added integration tests. - [x] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage. <hr> ## Key changed/added classes * org.apache.zeppelin.iotdb.IoTDBInterpreter * org.apache.zeppelin.iotdb.IoTDBInterpreterTest ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
