Skip to content

Commit

Permalink
support the ras
Browse files Browse the repository at this point in the history
  • Loading branch information
weixiuli committed Nov 6, 2024
1 parent b9084bd commit 4005637
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import org.apache.gluten.backendsapi.BackendsApiManager
import org.apache.gluten.expression.ConverterUtils
import org.apache.gluten.extension.ValidationResult
import org.apache.gluten.metrics.MetricsUpdater
import org.apache.gluten.planner.plan.GlutenPlanModel.GroupLeafExec
import org.apache.gluten.substrait.`type`.ColumnTypeNode
import org.apache.gluten.substrait.SubstraitContext
import org.apache.gluten.substrait.extensions.ExtensionBuilder
Expand All @@ -30,6 +31,7 @@ import org.apache.gluten.utils.SubstraitUtil
import org.apache.spark.sql.catalyst.catalog.BucketSpec
import org.apache.spark.sql.catalyst.catalog.CatalogTypes.TablePartitionSpec
import org.apache.spark.sql.catalyst.expressions.{Attribute, Expression, Literal}
import org.apache.spark.sql.catalyst.plans.logical.Project
import org.apache.spark.sql.catalyst.util.CaseInsensitiveMap
import org.apache.spark.sql.execution.{ProjectExec, SparkPlan}
import org.apache.spark.sql.execution.datasources.FileFormat
Expand Down Expand Up @@ -142,6 +144,12 @@ case class WriteFilesExecTransformer(
t.projectList.exists(isConstantComplexType)
case p: ProjectExec =>
p.projectList.exists(isConstantComplexType)
case g: GroupLeafExec => // support the ras
g.metadata.logicalLink().plan.exists {
case p: Project =>
p.projectList.exists(isConstantComplexType)
case _ => false
}
case _ => false
}
// TODO: currently the velox don't support parquet write with complex data type
Expand Down

0 comments on commit 4005637

Please sign in to comment.