Wei-hao-Li opened a new pull request, #9603:
URL: https://github.com/apache/iotdb/pull/9603

   cause: incorrect logicPlan process
   origin jira: https://jira.infra.timecho.com:8443/browse/TIMECHODB-73
   content of jira: 
   版本
   master Enterprise version 1.2.0-SNAPSHOT (Build: 71b6bbf)
   
   复现步骤
   方法一: 
   
   create timeseries root.test.g_0.tab1.s_0 with datatype=int32;
    create timeseries root.test.g_0.tab1.s_1 with datatype=int32;
    
    insert into root.test.g_0.tab1(time,s_0,s_1) values (1,1,1);
    alter timeseries root.test.g_0.tab1.s_0 add tags city=beijing;
    select count(s_0) ,count(s_1) from root.test.g_0.tab1 group by tags(city);
   
   方法二:
   
   启动1C3D ,1副本 IoT协议
   benchmark运行附件配置
   给序列s_19 add tags
   cli 执行查询
   ./sbin/start-cli.sh -h 172.20.70.2  -e "select sum(s_19),sum(s_20) from 
root.test.g_0.** group by tags(city);"
   Msg: 301: 2
   
   
   
   2023-04-04 13:13:48,613 
[Query-Worker-Thread-7$20230404_051348_41492_1.1.0.0] WARN  
o.a.i.d.m.e.s.AbstractDriverThread:79 - [ExecuteFailed]
   java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 2
           at 
org.apache.iotdb.db.mpp.execution.driver.Driver.processInternal(Driver.java:231)
           at 
org.apache.iotdb.db.mpp.execution.driver.Driver.lambda$processFor$1(Driver.java:144)
           at 
org.apache.iotdb.db.mpp.execution.driver.Driver.tryWithLock(Driver.java:308)
           at 
org.apache.iotdb.db.mpp.execution.driver.Driver.processFor(Driver.java:125)
           at 
org.apache.iotdb.db.mpp.execution.schedule.DriverTaskThread.execute(DriverTaskThread.java:69)
           at 
org.apache.iotdb.db.mpp.execution.schedule.AbstractDriverThread.run(AbstractDriverThread.java:73)
   Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
           at 
org.apache.iotdb.db.mpp.execution.operator.process.TagAggregationOperator.processOneRow(TagAggregationOperator.java:131)
           at 
org.apache.iotdb.db.mpp.execution.operator.process.TagAggregationOperator.next(TagAggregationOperator.java:91)
           at 
org.apache.iotdb.db.mpp.execution.operator.sink.IdentitySinkOperator.next(IdentitySinkOperator.java:99)
           at 
org.apache.iotdb.db.mpp.execution.operator.Operator.nextWithTimer(Operator.java:46)
           at 
org.apache.iotdb.db.mpp.execution.driver.Driver.processInternal(Driver.java:221)
           ... 5 common frames omitted
   2023-04-04 13:13:48,613 
[Query-Worker-Thread-7$20230404_051348_41492_1.1.0.0] WARN  
o.a.i.d.m.e.s.DriverScheduler$Scheduler:509 - The task 
20230404_051348_41492_1.1.0.0 is aborted. All other tasks in the same query 
will be cancelled
   2023-04-04 13:13:48,616 [pool-31-IoTDB-ClientRPC-Processor-33] WARN  
o.a.i.d.u.ErrorHandlingUtils:89 - Status code: 301, Query Statement: "select 
sum(s_19),sum(s_20) from root.test.g_0.** group by tags(city)". 
executeStatement failed
   org.apache.iotdb.commons.exception.IoTDBException: 
java.lang.ArrayIndexOutOfBoundsException: 2
           at 
org.apache.iotdb.db.mpp.plan.execution.QueryExecution.dealWithException(QueryExecution.java:479)
           at 
org.apache.iotdb.db.mpp.plan.execution.QueryExecution.getResult(QueryExecution.java:462)
           at 
org.apache.iotdb.db.mpp.plan.execution.QueryExecution.getByteBufferBatchResult(QueryExecution.java:497)
           at 
org.apache.iotdb.db.utils.QueryDataSetUtils.convertQueryResultByFetchSize(QueryDataSetUtils.java:254)
           at 
org.apache.iotdb.db.service.thrift.impl.ClientRPCServiceImpl.lambda$static$0(ClientRPCServiceImpl.java:171)
           at 
org.apache.iotdb.db.service.thrift.impl.ClientRPCServiceImpl.executeStatementInternal(ClientRPCServiceImpl.java:243)
           at 
org.apache.iotdb.db.service.thrift.impl.ClientRPCServiceImpl.executeStatementV2(ClientRPCServiceImpl.java:484)
           at 
org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$executeStatementV2.getResult(IClientRPCService.java:3861)
           at 
org.apache.iotdb.service.rpc.thrift.IClientRPCService$Processor$executeStatementV2.getResult(IClientRPCService.java:3841)
           at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:38)
           at 
org.apache.iotdb.db.service.thrift.ProcessorWithMetrics.process(ProcessorWithMetrics.java:64)
           at 
org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:248)
           at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)
   Caused by: java.lang.ArrayIndexOutOfBoundsException: 2
           at 
org.apache.iotdb.db.mpp.execution.operator.process.TagAggregationOperator.processOneRow(TagAggregationOperator.java:131)
           at 
org.apache.iotdb.db.mpp.execution.operator.process.TagAggregationOperator.next(TagAggregationOperator.java:91)
           at 
org.apache.iotdb.db.mpp.execution.operator.sink.IdentitySinkOperator.next(IdentitySinkOperator.java:99)
           at 
org.apache.iotdb.db.mpp.execution.operator.Operator.nextWithTimer(Operator.java:46)
           at 
org.apache.iotdb.db.mpp.execution.driver.Driver.processInternal(Driver.java:221)
           at 
org.apache.iotdb.db.mpp.execution.driver.Driver.lambda$processFor$1(Driver.java:144)
           at 
org.apache.iotdb.db.mpp.execution.driver.Driver.tryWithLock(Driver.java:308)
           at 
org.apache.iotdb.db.mpp.execution.driver.Driver.processFor(Driver.java:125)
           at 
org.apache.iotdb.db.mpp.execution.schedule.DriverTaskThread.execute(DriverTaskThread.java:69)
           at 
org.apache.iotdb.db.mpp.execution.schedule.AbstractDriverThread.run(AbstractDriverThread.java:73)
   
    


-- 
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]

Reply via email to