Beyyes commented on a change in pull request #31: Fix sonar
URL: https://github.com/apache/incubator-iotdb/pull/31#discussion_r251008904
##########
File path:
iotdb/src/main/java/org/apache/iotdb/db/query/executor/EngineExecutorWithTimeGenerator.java
##########
@@ -59,18 +59,24 @@
* @throws IOException IOException
* @throws FileNodeManagerException FileNodeManagerException
*/
- public QueryDataSet execute() throws IOException, FileNodeManagerException {
+ public QueryDataSet execute() throws FileNodeManagerException {
QueryTokenManager.getInstance()
.beginQueryOfGivenQueryPaths(jobId,
queryExpression.getSelectedSeries());
QueryTokenManager.getInstance()
.beginQueryOfGivenExpression(jobId, queryExpression.getExpression());
- EngineTimeGenerator timestampGenerator = new EngineTimeGenerator(jobId,
- queryExpression.getExpression());
+ EngineTimeGenerator timestampGenerator = null;
+ List<EngineReaderByTimeStamp> readersOfSelectedSeries = null;
+ try {
+ timestampGenerator = new EngineTimeGenerator(jobId,
+ queryExpression.getExpression());
- List<EngineReaderByTimeStamp> readersOfSelectedSeries =
getReadersOfSelectedPaths(
- queryExpression.getSelectedSeries());
+ readersOfSelectedSeries = getReadersOfSelectedPaths(
+ queryExpression.getSelectedSeries());
+ } catch (IOException ex){
Review comment:
format
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services