Shekharrajak opened a new issue, #3521:
URL: https://github.com/apache/datafusion-comet/issues/3521

   ### Describe the bug
   
    When using the native Parquet writer with INSERT INTO ... SELECT syntax, 
subsequent reads return empty results even though the file is written 
successfully. This could be  due to Spark caching . 
   
   Ref https://github.com/apache/datafusion-comet/pull/3479/changes#r2804765579
   
   
   ```
   withSQLConf(
     CometConf.COMET_NATIVE_PARQUET_WRITE_ENABLED.key -> "true",
     CometConf.COMET_EXEC_ENABLED.key -> "true",
     
CometConf.getOperatorAllowIncompatConfigKey(classOf[DataWritingCommandExec]) -> 
"true") {
     
     sql("create table t(i boolean) using parquet")
     sql("alter table t add column s bigint default 42")
     sql("insert into t select false, default")
     spark.table("t").show()  // Returns empty!
   }
   ```
   
   expected :  false, 42 
   
   actual: (0 rows)
   
   Note: This issue does NOT affect INSERT INTO ... VALUES syntax, only INSERT 
INTO ... SELECT.
   
   ### Steps to reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _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