wypb opened a new issue, #9435:
URL: https://github.com/apache/incubator-gluten/issues/9435

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   We set `spark.gluten.sql.columnarToRowMemoryThreshold=256;` and then run 
TPCDS Q3, where the store_sales table is a partitioned table. The following 
exception will occur:
   ```
   25/04/27 16:47:47 ERROR TaskResources: Task -1 failed by error: 
   org.apache.gluten.exception.GlutenException: ResourceHandle not found in 
resource map when try to lookup: 6
           at 
org.apache.gluten.vectorized.NativeColumnarToRowJniWrapper.nativeColumnarToRowConvert(Native
 Method)
           at 
org.apache.spark.sql.execution.ColumnarBuildSideRelation$$anon$2$$anon$3.next(ColumnarBuildSideRelation.scala:179)
           at 
org.apache.spark.sql.execution.ColumnarBuildSideRelation$$anon$2$$anon$3.next(ColumnarBuildSideRelation.scala:166)
           at scala.collection.Iterator$$anon$10.next(Iterator.scala:461)
           at scala.collection.Iterator$$anon$10.next(Iterator.scala:461)
           at scala.collection.Iterator$$anon$10.next(Iterator.scala:461)
           at 
scala.collection.TraversableOnce$FlattenOps$$anon$2.next(TraversableOnce.scala:522)
           at scala.collection.Iterator.foreach(Iterator.scala:943)
           at scala.collection.Iterator.foreach$(Iterator.scala:943)
           at scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
           at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
           at 
scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
           at 
scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:105)
           at 
scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:49)
           at scala.collection.TraversableOnce.to(TraversableOnce.scala:366)
           at scala.collection.TraversableOnce.to$(TraversableOnce.scala:364)
           at scala.collection.AbstractIterator.to(Iterator.scala:1431)
           at 
scala.collection.TraversableOnce.toBuffer(TraversableOnce.scala:358)
           at 
scala.collection.TraversableOnce.toBuffer$(TraversableOnce.scala:358)
           at scala.collection.AbstractIterator.toBuffer(Iterator.scala:1431)
           at 
scala.collection.TraversableOnce.toArray(TraversableOnce.scala:345)
           at 
scala.collection.TraversableOnce.toArray$(TraversableOnce.scala:339)
           at scala.collection.AbstractIterator.toArray(Iterator.scala:1431)
           at 
org.apache.spark.sql.execution.ColumnarBuildSideRelation.$anonfun$transform$1(ColumnarBuildSideRelation.scala:195)
           at 
org.apache.spark.task.TaskResources$.runUnsafe(TaskResources.scala:99)
           at 
org.apache.spark.sql.execution.ColumnarBuildSideRelation.transform(ColumnarBuildSideRelation.scala:106)
           at 
org.apache.spark.sql.execution.ColumnarSubqueryBroadcastExec.$anonfun$relationFuture$3(ColumnarSubqueryBroadcastExec.scala:91)
           at org.apache.gluten.utils.Arm$.withResource(Arm.scala:25)
           at 
org.apache.gluten.metrics.GlutenTimeMetric$.millis(GlutenTimeMetric.scala:37)
           at 
org.apache.spark.sql.execution.ColumnarSubqueryBroadcastExec.$anonfun$relationFuture$2(ColumnarSubqueryBroadcastExec.scala:85)
           at 
org.apache.spark.sql.execution.SQLExecution$.$anonfun$withExecutionId$1(SQLExecution.scala:177)
           at 
org.apache.spark.sql.execution.SQLExecution$.withSQLConfPropagated(SQLExecution.scala:201)
           at 
org.apache.spark.sql.execution.SQLExecution$.withExecutionId(SQLExecution.scala:175)
           at 
org.apache.spark.sql.execution.ColumnarSubqueryBroadcastExec.$anonfun$relationFuture$1(ColumnarSubqueryBroadcastExec.scala:83)
           at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
           at scala.util.Success.$anonfun$map$1(Try.scala:255)
           at scala.util.Success.map(Try.scala:213)
           at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
           at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
           at 
scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
           at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
           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:750)
   Exception thrown in awaitResult: 
   org.apache.spark.SparkException: Exception thrown in awaitResult: 
           at 
org.apache.spark.util.SparkThreadUtils$.awaitResult(SparkThreadUtils.scala:56)
           at 
org.apache.spark.util.ThreadUtils$.awaitResult(ThreadUtils.scala:310)
           at 
org.apache.spark.sql.execution.ColumnarSubqueryBroadcastExec.executeCollect(ColumnarSubqueryBroadcastExec.scala:136)
           at 
org.apache.spark.sql.execution.InSubqueryExec.updateResult(subquery.scala:129)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$waitForSubqueries$1(SparkPlan.scala:276)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$waitForSubqueries$1$adapted(SparkPlan.scala:275)
           at 
scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
           at 
scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
           at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
           at 
org.apache.spark.sql.execution.SparkPlan.waitForSubqueries(SparkPlan.scala:275)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:245)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.gluten.execution.TransformSupport.transform(WholeStageTransformer.scala:178)
           at 
org.apache.gluten.execution.TransformSupport.transform$(WholeStageTransformer.scala:168)
           at 
org.apache.gluten.execution.FileSourceScanExecTransformerBase.transform(FileSourceScanExecTransformer.scala:78)
           at 
org.apache.gluten.execution.FilterExecTransformerBase.doTransform(BasicPhysicalOperatorTransformer.scala:150)
           at 
org.apache.gluten.execution.TransformSupport.$anonfun$transform$1(WholeStageTransformer.scala:178)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.gluten.execution.TransformSupport.transform(WholeStageTransformer.scala:178)
           at 
org.apache.gluten.execution.TransformSupport.transform$(WholeStageTransformer.scala:168)
           at 
org.apache.gluten.execution.FilterExecTransformerBase.transform(BasicPhysicalOperatorTransformer.scala:38)
           at 
org.apache.gluten.execution.HashJoinLikeExecTransformer.doTransform(JoinExecTransformer.scala:233)
           at 
org.apache.gluten.execution.HashJoinLikeExecTransformer.doTransform$(JoinExecTransformer.scala:232)
           at 
org.apache.gluten.execution.BroadcastHashJoinExecTransformerBase.doTransform(JoinExecTransformer.scala:368)
           at 
org.apache.gluten.execution.TransformSupport.$anonfun$transform$1(WholeStageTransformer.scala:178)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.gluten.execution.TransformSupport.transform(WholeStageTransformer.scala:178)
           at 
org.apache.gluten.execution.TransformSupport.transform$(WholeStageTransformer.scala:168)
           at 
org.apache.gluten.execution.BroadcastHashJoinExecTransformerBase.transform(JoinExecTransformer.scala:368)
           at 
org.apache.gluten.execution.ProjectExecTransformerBase.doTransform(BasicPhysicalOperatorTransformer.scala:204)
           at 
org.apache.gluten.execution.TransformSupport.$anonfun$transform$1(WholeStageTransformer.scala:178)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.gluten.execution.TransformSupport.transform(WholeStageTransformer.scala:178)
           at 
org.apache.gluten.execution.TransformSupport.transform$(WholeStageTransformer.scala:168)
           at 
org.apache.gluten.execution.ProjectExecTransformerBase.transform(BasicPhysicalOperatorTransformer.scala:172)
           at 
org.apache.gluten.execution.HashJoinLikeExecTransformer.doTransform(JoinExecTransformer.scala:233)
           at 
org.apache.gluten.execution.HashJoinLikeExecTransformer.doTransform$(JoinExecTransformer.scala:232)
           at 
org.apache.gluten.execution.BroadcastHashJoinExecTransformerBase.doTransform(JoinExecTransformer.scala:368)
           at 
org.apache.gluten.execution.TransformSupport.$anonfun$transform$1(WholeStageTransformer.scala:178)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.gluten.execution.TransformSupport.transform(WholeStageTransformer.scala:178)
           at 
org.apache.gluten.execution.TransformSupport.transform$(WholeStageTransformer.scala:168)
           at 
org.apache.gluten.execution.BroadcastHashJoinExecTransformerBase.transform(JoinExecTransformer.scala:368)
           at 
org.apache.gluten.execution.ProjectExecTransformerBase.doTransform(BasicPhysicalOperatorTransformer.scala:204)
           at 
org.apache.gluten.execution.TransformSupport.$anonfun$transform$1(WholeStageTransformer.scala:178)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.gluten.execution.TransformSupport.transform(WholeStageTransformer.scala:178)
           at 
org.apache.gluten.execution.TransformSupport.transform$(WholeStageTransformer.scala:168)
           at 
org.apache.gluten.execution.ProjectExecTransformerBase.transform(BasicPhysicalOperatorTransformer.scala:172)
           at 
org.apache.gluten.execution.HashAggregateExecTransformer.doTransform(HashAggregateExecTransformer.scala:72)
           at 
org.apache.gluten.execution.TransformSupport.$anonfun$transform$1(WholeStageTransformer.scala:178)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.gluten.execution.TransformSupport.transform(WholeStageTransformer.scala:178)
           at 
org.apache.gluten.execution.TransformSupport.transform$(WholeStageTransformer.scala:168)
           at 
org.apache.gluten.execution.HashAggregateExecBaseTransformer.transform(HashAggregateExecBaseTransformer.scala:36)
           at 
org.apache.gluten.execution.ProjectExecTransformerBase.doTransform(BasicPhysicalOperatorTransformer.scala:204)
           at 
org.apache.gluten.execution.TransformSupport.$anonfun$transform$1(WholeStageTransformer.scala:178)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.gluten.execution.TransformSupport.transform(WholeStageTransformer.scala:178)
           at 
org.apache.gluten.execution.TransformSupport.transform$(WholeStageTransformer.scala:168)
           at 
org.apache.gluten.execution.ProjectExecTransformerBase.transform(BasicPhysicalOperatorTransformer.scala:172)
           at 
org.apache.gluten.execution.WholeStageTransformer.generateWholeStageTransformContext(WholeStageTransformer.scala:301)
           at 
org.apache.gluten.execution.WholeStageTransformer.doWholeStageTransform(WholeStageTransformer.scala:332)
           at 
org.apache.gluten.execution.WholeStageTransformer.$anonfun$doExecuteColumnar$1(WholeStageTransformer.scala:491)
           at 
org.apache.gluten.metrics.GlutenTimeMetric$.withNanoTime(GlutenTimeMetric.scala:41)
           at 
org.apache.gluten.metrics.GlutenTimeMetric$.withMillisTime(GlutenTimeMetric.scala:46)
           at 
org.apache.gluten.execution.WholeStageTransformer.doExecuteColumnar(WholeStageTransformer.scala:493)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeColumnar$1(SparkPlan.scala:222)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.spark.sql.execution.SparkPlan.executeColumnar(SparkPlan.scala:218)
           at 
org.apache.gluten.execution.VeloxResizeBatchesExec.doExecuteColumnar(VeloxResizeBatchesExec.scala:70)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeColumnar$1(SparkPlan.scala:222)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.spark.sql.execution.SparkPlan.executeColumnar(SparkPlan.scala:218)
           at 
org.apache.spark.sql.execution.ColumnarShuffleExchangeExec.inputColumnarRDD$lzycompute(ColumnarShuffleExchangeExec.scala:66)
           at 
org.apache.spark.sql.execution.ColumnarShuffleExchangeExec.inputColumnarRDD(ColumnarShuffleExchangeExec.scala:66)
           at 
org.apache.spark.sql.execution.ColumnarShuffleExchangeExec.columnarShuffleDependency$lzycompute(ColumnarShuffleExchangeExec.scala:85)
           at 
org.apache.spark.sql.execution.ColumnarShuffleExchangeExec.columnarShuffleDependency(ColumnarShuffleExchangeExec.scala:83)
           at 
org.apache.spark.sql.execution.ColumnarShuffleExchangeExec.doExecuteColumnar(ColumnarShuffleExchangeExec.scala:146)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeColumnar$1(SparkPlan.scala:222)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.spark.sql.execution.SparkPlan.executeColumnar(SparkPlan.scala:218)
           at 
org.apache.spark.sql.execution.ColumnarInputAdapter.doExecuteColumnar(ColumnarCollapseTransformStages.scala:193)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeColumnar$1(SparkPlan.scala:222)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.spark.sql.execution.SparkPlan.executeColumnar(SparkPlan.scala:218)
           at 
org.apache.gluten.execution.TransformSupport.getColumnarInputRDDs(WholeStageTransformer.scala:195)
           at 
org.apache.gluten.execution.TransformSupport.getColumnarInputRDDs$(WholeStageTransformer.scala:190)
           at 
org.apache.spark.sql.execution.InputIteratorTransformer.getColumnarInputRDDs(ColumnarCollapseTransformStages.scala:48)
           at 
org.apache.gluten.execution.UnaryTransformSupport.columnarInputRDDs(WholeStageTransformer.scala:211)
           at 
org.apache.gluten.execution.UnaryTransformSupport.columnarInputRDDs$(WholeStageTransformer.scala:210)
           at 
org.apache.spark.sql.execution.InputIteratorTransformer.columnarInputRDDs(ColumnarCollapseTransformStages.scala:48)
           at 
org.apache.gluten.execution.TransformSupport.getColumnarInputRDDs(WholeStageTransformer.scala:193)
           at 
org.apache.gluten.execution.TransformSupport.getColumnarInputRDDs$(WholeStageTransformer.scala:190)
           at 
org.apache.gluten.execution.HashAggregateExecBaseTransformer.getColumnarInputRDDs(HashAggregateExecBaseTransformer.scala:36)
           at 
org.apache.gluten.execution.UnaryTransformSupport.columnarInputRDDs(WholeStageTransformer.scala:211)
           at 
org.apache.gluten.execution.UnaryTransformSupport.columnarInputRDDs$(WholeStageTransformer.scala:210)
           at 
org.apache.gluten.execution.HashAggregateExecBaseTransformer.columnarInputRDDs(HashAggregateExecBaseTransformer.scala:36)
           at 
org.apache.gluten.execution.TransformSupport.getColumnarInputRDDs(WholeStageTransformer.scala:193)
           at 
org.apache.gluten.execution.TransformSupport.getColumnarInputRDDs$(WholeStageTransformer.scala:190)
           at 
org.apache.gluten.execution.ProjectExecTransformerBase.getColumnarInputRDDs(BasicPhysicalOperatorTransformer.scala:172)
           at 
org.apache.gluten.execution.UnaryTransformSupport.columnarInputRDDs(WholeStageTransformer.scala:211)
           at 
org.apache.gluten.execution.UnaryTransformSupport.columnarInputRDDs$(WholeStageTransformer.scala:210)
           at 
org.apache.gluten.execution.ProjectExecTransformerBase.columnarInputRDDs(BasicPhysicalOperatorTransformer.scala:172)
           at 
org.apache.gluten.execution.TransformSupport.getColumnarInputRDDs(WholeStageTransformer.scala:193)
           at 
org.apache.gluten.execution.TransformSupport.getColumnarInputRDDs$(WholeStageTransformer.scala:190)
           at 
org.apache.gluten.execution.WholeStageTransformer.getColumnarInputRDDs(WholeStageTransformer.scala:215)
           at 
org.apache.gluten.execution.UnaryTransformSupport.columnarInputRDDs(WholeStageTransformer.scala:211)
           at 
org.apache.gluten.execution.UnaryTransformSupport.columnarInputRDDs$(WholeStageTransformer.scala:210)
           at 
org.apache.gluten.execution.WholeStageTransformer.columnarInputRDDs(WholeStageTransformer.scala:215)
           at 
org.apache.gluten.execution.WholeStageTransformer.doExecuteColumnar(WholeStageTransformer.scala:497)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeColumnar$1(SparkPlan.scala:222)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.spark.sql.execution.SparkPlan.executeColumnar(SparkPlan.scala:218)
           at 
org.apache.gluten.execution.TakeOrderedAndProjectExecTransformer.doExecuteColumnar(TakeOrderedAndProjectExecTransformer.scala:104)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeColumnar$1(SparkPlan.scala:222)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.spark.sql.execution.SparkPlan.executeColumnar(SparkPlan.scala:218)
           at 
org.apache.gluten.execution.VeloxColumnarToRowExec.doExecuteInternal(VeloxColumnarToRowExec.scala:75)
           at 
org.apache.gluten.execution.ColumnarToRowExecBase.doExecute(ColumnarToRowExecBase.scala:61)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$execute$1(SparkPlan.scala:195)
           at 
org.apache.spark.sql.execution.SparkPlan.$anonfun$executeQuery$1(SparkPlan.scala:246)
           at 
org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:151)
           at 
org.apache.spark.sql.execution.SparkPlan.executeQuery(SparkPlan.scala:243)
           at 
org.apache.spark.sql.execution.SparkPlan.execute(SparkPlan.scala:191)
           at 
org.apache.spark.sql.execution.SparkPlan.getByteArrayRdd(SparkPlan.scala:364)
           at 
org.apache.spark.sql.execution.SparkPlan.executeCollect(SparkPlan.scala:445)
           at 
org.apache.spark.sql.execution.SparkPlan.executeCollectPublic(SparkPlan.scala:475)
           at 
org.apache.spark.sql.execution.HiveResult$.hiveResultString(HiveResult.scala:76)
           at 
org.apache.spark.sql.hive.thriftserver.SparkSQLDriver.$anonfun$run$2(SparkSQLDriver.scala:76)
           at 
org.apache.spark.sql.execution.SQLExecution$.$anonfun$withNewExecutionId$6(SQLExecution.scala:125)
           at 
org.apache.spark.sql.execution.SQLExecution$.withSQLConfPropagated(SQLExecution.scala:201)
           at 
org.apache.spark.sql.execution.SQLExecution$.$anonfun$withNewExecutionId$1(SQLExecution.scala:108)
           at 
org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:900)
           at 
org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:66)
           at 
org.apache.spark.sql.hive.thriftserver.SparkSQLDriver.run(SparkSQLDriver.scala:76)
           at 
org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.processCmd(SparkSQLCLIDriver.scala:501)
           at 
org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.$anonfun$processLine$1(SparkSQLCLIDriver.scala:619)
           at 
org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.$anonfun$processLine$1$adapted(SparkSQLCLIDriver.scala:613)
           at scala.collection.Iterator.foreach(Iterator.scala:943)
           at scala.collection.Iterator.foreach$(Iterator.scala:943)
           at scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
           at scala.collection.IterableLike.foreach(IterableLike.scala:74)
           at scala.collection.IterableLike.foreach$(IterableLike.scala:73)
           at scala.collection.AbstractIterable.foreach(Iterable.scala:56)
           at 
org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.processLine(SparkSQLCLIDriver.scala:613)
           at 
org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver$.main(SparkSQLCLIDriver.scala:310)
           at 
org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver.main(SparkSQLCLIDriver.scala)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at 
org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
           at 
org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:1029)
           at 
org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:194)
           at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:217)
           at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:91)
           at 
org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:1120)
           at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:1129)
           at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
   Caused by: org.apache.gluten.exception.GlutenException: ResourceHandle not 
found in resource map when try to lookup: 6
           at 
org.apache.gluten.vectorized.NativeColumnarToRowJniWrapper.nativeColumnarToRowConvert(Native
 Method)
           at 
org.apache.spark.sql.execution.ColumnarBuildSideRelation$$anon$2$$anon$3.next(ColumnarBuildSideRelation.scala:179)
           at 
org.apache.spark.sql.execution.ColumnarBuildSideRelation$$anon$2$$anon$3.next(ColumnarBuildSideRelation.scala:166)
           at scala.collection.Iterator$$anon$10.next(Iterator.scala:461)
           at scala.collection.Iterator$$anon$10.next(Iterator.scala:461)
           at scala.collection.Iterator$$anon$10.next(Iterator.scala:461)
           at 
scala.collection.TraversableOnce$FlattenOps$$anon$2.next(TraversableOnce.scala:522)
           at scala.collection.Iterator.foreach(Iterator.scala:943)
           at scala.collection.Iterator.foreach$(Iterator.scala:943)
           at scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
           at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
           at 
scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
           at 
scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:105)
           at 
scala.collection.mutable.ArrayBuffer.$plus$plus$eq(ArrayBuffer.scala:49)
           at scala.collection.TraversableOnce.to(TraversableOnce.scala:366)
           at scala.collection.TraversableOnce.to$(TraversableOnce.scala:364)
           at scala.collection.AbstractIterator.to(Iterator.scala:1431)
           at 
scala.collection.TraversableOnce.toBuffer(TraversableOnce.scala:358)
           at 
scala.collection.TraversableOnce.toBuffer$(TraversableOnce.scala:358)
           at scala.collection.AbstractIterator.toBuffer(Iterator.scala:1431)
           at 
scala.collection.TraversableOnce.toArray(TraversableOnce.scala:345)
           at 
scala.collection.TraversableOnce.toArray$(TraversableOnce.scala:339)
           at scala.collection.AbstractIterator.toArray(Iterator.scala:1431)
           at 
org.apache.spark.sql.execution.ColumnarBuildSideRelation.$anonfun$transform$1(ColumnarBuildSideRelation.scala:195)
           at 
org.apache.spark.task.TaskResources$.runUnsafe(TaskResources.scala:99)
           at 
org.apache.spark.sql.execution.ColumnarBuildSideRelation.transform(ColumnarBuildSideRelation.scala:106)
           at 
org.apache.spark.sql.execution.ColumnarSubqueryBroadcastExec.$anonfun$relationFuture$3(ColumnarSubqueryBroadcastExec.scala:91)
           at org.apache.gluten.utils.Arm$.withResource(Arm.scala:25)
           at 
org.apache.gluten.metrics.GlutenTimeMetric$.millis(GlutenTimeMetric.scala:37)
           at 
org.apache.spark.sql.execution.ColumnarSubqueryBroadcastExec.$anonfun$relationFuture$2(ColumnarSubqueryBroadcastExec.scala:85)
           at 
org.apache.spark.sql.execution.SQLExecution$.$anonfun$withExecutionId$1(SQLExecution.scala:177)
           at 
org.apache.spark.sql.execution.SQLExecution$.withSQLConfPropagated(SQLExecution.scala:201)
           at 
org.apache.spark.sql.execution.SQLExecution$.withExecutionId(SQLExecution.scala:175)
           at 
org.apache.spark.sql.execution.ColumnarSubqueryBroadcastExec.$anonfun$relationFuture$1(ColumnarSubqueryBroadcastExec.scala:83)
           at scala.concurrent.Future$.$anonfun$apply$1(Future.scala:659)
           at scala.util.Success.$anonfun$map$1(Try.scala:255)
           at scala.util.Success.map(Try.scala:213)
           at scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
           at scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
           at 
scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
           at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64)
           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:750)
   ```
   
   ### Gluten version
   
   main branch
   
   ### Spark version
   
   Spark-3.5.x
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   ```bash
   
   ```


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to