ningsiyuan1024 opened a new pull request, #7839:
URL: https://github.com/apache/datafusion-comet/pull/7839

   ## Which issue does this PR close?
   
   Closes #7815.
   
   ## Rationale for this change
   
   With an explicit STRING read schema, Spark rejects an unannotated 
FIXED_LEN_BYTE_ARRAY. Comet emitted an unstructured cast error for three bytes 
and silently formatted sixteen bytes as a UUID.
   
   ## What changes are included in this PR?
   
   Reject this conversion in the plain Parquet scan and report the Spark 
schema-mismatch condition with the physical type. Keep the Iceberg UUID 
conversion available.
   
   ## How are these changes tested?
   
   The native schema adapter suite passed all 106 tests. On Spark 4.1.1 with 
the Dec 2 ASF Comet JVM snapshot and the native library built from this commit, 
both widths raised FAILED_READ_FILE.PARQUET_COLUMN_DATA_TYPE_MISMATCH with 
SQLSTATE KD001 and the same underlying exception as Spark. BINARY reads 
returned identical bytes. A real Iceberg 1.11.0 table returned the same three 
UUIDs from Spark and CometIcebergNativeScanExec. The patch also includes Scala 
regression coverage.
   
   AI assistance: OpenAI Codex wrote and tested the patch.
   


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