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

   ### Backend
   
   CH (ClickHouse)
   
   ### Bug description
   
   ```
   Cannot transform the SparkPlans wrapped by FileFormatWriter, consider 
disabling native writer to workaround this issue.
   java.lang.IllegalStateException: Cannot transform the SparkPlans wrapped by 
FileFormatWriter, consider disabling native writer to workaround this issue.
        at 
org.apache.spark.sql.execution.datasources.GlutenFormatWriterInjectsBase.executeWriterWrappedSparkPlan(GlutenFormatWriterInjectsBase.scala:56)
        at 
org.apache.spark.sql.execution.datasources.GlutenFormatWriterInjectsBase.executeWriterWrappedSparkPlan$(GlutenFormatWriterInjectsBase.scala:42)
        at 
org.apache.spark.sql.execution.datasources.v1.CHMergeTreeWriterInjects.executeWriterWrappedSparkPlan(CHMergeTreeWriterInjects.scala:48)
        at 
org.apache.spark.sql.execution.datasources.v1.clickhouse.MergeTreeFileFormatWriter$.nativeWrap$1(MergeTreeFileFormatWriter.scala:175)
        at 
org.apache.spark.sql.execution.datasources.v1.clickhouse.MergeTreeFileFormatWriter$.write(MergeTreeFileFormatWriter.scala:204)
        at 
org.apache.spark.sql.delta.ClickhouseOptimisticTransaction.$anonfun$writeFiles$1(ClickhouseOptimisticTransaction.scala:140)
        at 
org.apache.spark.sql.execution.SQLExecution$.$anonfun$withNewExecutionId$6(SQLExecution.scala:115)
        at 
org.apache.spark.sql.execution.SQLExecution$.withSQLConfPropagated(SQLExecution.scala:176)
        at 
org.apache.spark.sql.execution.SQLExecution$.$anonfun$withNewExecutionId$1(SQLExecution.scala:96)
        at org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:779)
        at 
org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:65)
        at 
org.apache.spark.sql.delta.ClickhouseOptimisticTransaction.writeFiles(ClickhouseOptimisticTransaction.scala:98)
        at 
org.apache.spark.sql.delta.files.TransactionalWrite.writeFiles(TransactionalWrite.scala:212)
        at 
org.apache.spark.sql.delta.files.TransactionalWrite.writeFiles$(TransactionalWrite.scala:209)
        at 
org.apache.spark.sql.delta.OptimisticTransaction.writeFiles(OptimisticTransaction.scala:129)
        at 
org.apache.spark.sql.delta.commands.WriteIntoDelta.write(WriteIntoDelta.scala:344)
        at 
org.apache.spark.sql.delta.commands.WriteIntoDelta.$anonfun$run$1(WriteIntoDelta.scala:97)
        at 
org.apache.spark.sql.delta.commands.WriteIntoDelta.$anonfun$run$1$adapted(WriteIntoDelta.scala:92)
        at 
org.apache.spark.sql.delta.DeltaLog.withNewTransaction(DeltaLog.scala:249)
        at 
org.apache.spark.sql.delta.commands.WriteIntoDelta.run(WriteIntoDelta.scala:92)
        at 
org.apache.spark.sql.execution.datasources.v2.clickhouse.ClickHouseDataSource.createRelation(ClickHouseDataSource.scala:91)
        at 
org.apache.spark.sql.execution.datasources.SaveIntoDataSourceCommand.run(SaveIntoDataSourceCommand.scala:45)
        at 
org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult$lzycompute(commands.scala:75)
        at 
org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult(commands.scala:73)
        at 
org.apache.spark.sql.execution.command.ExecutedCommandExec.executeCollect(commands.scala:84)
        at 
org.apache.spark.sql.execution.QueryExecution$$anonfun$eagerlyExecuteCommands$1.$anonfun$applyOrElse$1(QueryExecution.scala:99)
        at 
org.apache.spark.sql.execution.SQLExecution$.$anonfun$withNewExecutionId$6(SQLExecution.scala:115)
        at 
org.apache.spark.sql.execution.SQLExecution$.withSQLConfPropagated(SQLExecution.scala:176)
        at 
org.apache.spark.sql.execution.SQLExecution$.$anonfun$withNewExecutionId$1(SQLExecution.scala:96)
        at org.apache.spark.sql.SparkSession.withActive(SparkSession.scala:779)
   ```
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   _No response_


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