weixiuli commented on code in PR #7676:
URL: https://github.com/apache/incubator-gluten/pull/7676#discussion_r1831025655


##########
gluten-substrait/src/main/scala/org/apache/gluten/execution/WriteFilesExecTransformer.scala:
##########
@@ -127,6 +131,37 @@ case class WriteFilesExecTransformer(
 
   override protected def doValidateInternal(): ValidationResult = {
     val finalChildOutput = getFinalChildOutput
+
+    def isConstantComplexType(e: Expression): Boolean = {
+      e match {
+        case Literal(_, _: ArrayType | _: MapType) => true

Review Comment:
   > @weixiuli Do we need StructType check here?
   
   Whether or not a StructType is a constant, it is captured by the 
validateDataTypes and does not support vectorized writes. The 
isConstantComplexType method is used to check if ArrayType/MapType is 
sconstant, and if it is, it needs to fall back because velox currently doesn't 
support this scenario.
   



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