comphead opened a new issue, #2256:
URL: https://github.com/apache/datafusion-comet/issues/2256
### Describe the bug
The `cast StructType to StringType` fails on duplicated columns with auto
and native_scan
```
checkSparkAnswerAndOperator(
"SELECT CAST(struct(_12, _12) as string) FROM tbl")
Expected only Comet native operators, but found Project.
plan: *(1) Project [cast(struct(_12, _12#11, _12, _12#11) as string) AS
CAST(struct(_12, _12) AS STRING)#59]
+- *(1) CometColumnarToRow
+- CometScan [native_iceberg_compat] parquet [_12#11] Batched: true,
DataFilters: [], Format: CometParquet, Location: InMemoryFileIndex(1
paths)[file:/private/var/folders/6f/_s1vnnd55zgfkx7zlwnrnv0h0000gn/T/spark-76...,
PartitionFilters: [], PushedFilters: [], ReadSchema: struct<_12:decimal(20,0)>
```
Found when working on #2175
### 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]