dcoliversun commented on issue #5102:
URL: 
https://github.com/apache/incubator-gluten/issues/5102#issuecomment-2029497878

   result is here
   ```shell
   scala> spark.read.parquet("/opt/data").createOrReplaceTempView("view")
   
   scala> spark.sql("select * from view").show
   +----------+
   |dateColumn|
   +----------+
   |2023-01-01|
   |2023-01-03|
   |2023-01-02|
   +----------+
   
   scala> val newDf = spark.sql("select cast(dateColumn as string) from view")
   newDf: org.apache.spark.sql.DataFrame = [dateColumn: string]
   
   scala> newDf.explain
   == Physical Plan ==
   VeloxColumnarToRowExec
   +- ^(3) ProjectExecTransformer [cast(dateColumn#0 as string) AS 
dateColumn#15]
      +- ^(3) NativeFileScan parquet [dateColumn#0] Batched: true, DataFilters: 
[], Format: Parquet, Location: InMemoryFileIndex(1 paths)[file:/opt/data], 
PartitionFilters: [], PushedFilters: [], ReadSchema: struct<dateColumn:date>
   ```


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