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

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   Reproducing unit test:
   ```scala
       withTable("t1", "t2", "t3") {
         Seq((1, 1), (2, 2)).toDF("c1", "c2").write.saveAsTable("t1")
         Seq(1, 2, 3).toDF("c1").write.saveAsTable("t2")
         Seq(1, 2, 3).toDF("c1").write.saveAsTable("t3")
   
         val q4 =
           """
             |select c1, c2, a, b from
             |(select c1, c2, c2 as a, c2 as b, rand() as c from t1) tt1
             |where c > -1 and b > 1
             |""".stripMargin
   
       runQueryAndCompare(q4) { _ => }
   ```
   
   Error message:
   ```
   Caused by: org.apache.gluten.exception.GlutenException: Exception: 
VeloxRuntimeError
   Error Source: RUNTIME
   Error Code: INVALID_STATE
   Reason: An unloaded lazy vector cannot be wrapped by two different top level 
vectors.
   Retriable: False
   Expression: dictionaryValues_->markAsContainingLazyAndWrapped()
   Context: Operator: HashProbe[3] 2
   Function: setInternalState
   File: 
/opt/meituan/panning/gluten-dev/velox/./velox/vector/DictionaryVector-inl.h
   Line: 35
   Stack trace:
   # 0  _ZN8facebook5velox7process10StackTraceC1Ei
   # 1  
_ZN8facebook5velox14VeloxExceptionC1EPKcmS3_St17basic_string_viewIcSt11char_traitsIcEES7_S7_S7_bNS1_4TypeES7_
   # 2  
_ZN8facebook5velox6detail14veloxCheckFailINS0_17VeloxRuntimeErrorEPKcEEvRKNS1_18VeloxCheckFailArgsET0_
   # 3  _ZN8facebook5velox16DictionaryVectorIiE16setInternalStateEv
   # 4  
_ZN8facebook5velox16DictionaryVectorIiEC2EPNS0_6memory10MemoryPoolEN5boost13intrusive_ptrINS0_6BufferEEEmSt10shared_ptrINS0_10BaseVectorEES9_RKNS0_17SimpleVectorStatsIiEESt8optionalIiESI_SH_IbESI_SI_
   # 5  
_ZN8facebook5velox10BaseVector16wrapInDictionaryEN5boost13intrusive_ptrINS0_6BufferEEES5_iSt10shared_ptrIS1_Eb
   # 6  
_ZN8facebook5velox4exec9wrapChildEiN5boost13intrusive_ptrINS0_6BufferEEERKSt10shared_ptrINS0_10BaseVectorEES5_
   # 7  _ZN8facebook5velox4exec9HashProbe10fillOutputEi
   # 8  _ZN8facebook5velox4exec9HashProbe17getOutputInternalEb
   # 9  _ZN8facebook5velox4exec9HashProbe9getOutputEv
   # 10 
_ZZN8facebook5velox4exec6Driver11runInternalERSt10shared_ptrIS2_ERS3_INS1_13BlockingStateEERS3_INS0_9RowVectorEEENKUlvE3_clEv
   # 11 
_ZN8facebook5velox4exec6Driver11runInternalERSt10shared_ptrIS2_ERS3_INS1_13BlockingStateEERS3_INS0_9RowVectorEE
   # 12 _ZN8facebook5velox4exec6Driver4nextEPN5folly10SemiFutureINS3_4UnitEEE
   # 13 _ZN8facebook5velox4exec4Task4nextEPN5folly10SemiFutureINS3_4UnitEEE
   # 14 _ZN6gluten24WholeStageResultIterator4nextEv
   # 15 Java_org_apache_gluten_vectorized_ColumnarBatchOutIterator_nativeHasNext
   # 16 0x00007fd74aaddca4
   ```
   
   ### Gluten version
   
   Gluten-1.3
   
   ### 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