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

   ### Describe the bug
   
   Currently `native_datafusion/native_iceberg_compat` scans are 
case-sensitive, which may be inconsistent with vanilla spark.
   
   test case:
   
   ```
     test("test V1 parquet scan uses native_iceberg_compat -- case 
insensitive") {
       withTempPath { path =>
         spark.range(10).toDF("a").write.parquet(path.toString)
         Seq(CometConf.SCAN_NATIVE_DATAFUSION, 
CometConf.SCAN_NATIVE_ICEBERG_COMPAT).foreach(scanMode => {
           withSQLConf(CometConf.COMET_NATIVE_SCAN_IMPL.key -> scanMode) {
             sql("create table test (A long) using parquet options (path '" + 
path + "')")
             val df = sql("select A from test")
             checkSparkAnswer(df)
           }
         })
       }
     }
   ```
   
   error:
   
   ```
   == Results ==
   !== Correct Answer - 10 ==   == Spark Answer - 10 ==
    struct<A:bigint>            struct<A:bigint>
   ![0]                         [null]
   ![1]                         [null]
   ![2]                         [null]
   ![3]                         [null]
   ![4]                         [null]
   ![5]                         [null]
   ![6]                         [null]
   ![7]                         [null]
   ![8]                         [null]
   ![9]                         [null]
   ```
   
   ### 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: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to