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

   ### Describe the bug
   
   
https://github.com/apache/datafusion-comet/pull/4541#pullrequestreview-4733783077
   
   ### Steps to reproduce
   
   ```scala
   import java.nio.file.Files
   import spark.implicits._
   
   spark.conf.set("spark.sql.adaptive.enabled", "false")
   
   val path = Files.createTempDirectory("comet-ym-").resolve("data").toString
   Seq((1, 2), (0, -1)).toDF("y", "m").write.parquet(path)
   
   // Case 1: nested YearMonthIntervalType fallback
   val nested = spark.sql(
     """SELECT transform(a, x -> x) AS result
       |FROM VALUES
       |  (array(make_ym_interval(1, 2),
       |         CAST(NULL AS INTERVAL YEAR TO MONTH)))
       |AS t(a)""".stripMargin)
   
   nested.explain("extended")
   nested.show(false)
   
   // Case 2: native-shuffle fallback
   val shuffled = spark.sql(
     s"""SELECT y, m, make_ym_interval(y, m) AS i
        |FROM parquet.`$path`
        |DISTRIBUTE BY y""".stripMargin)
   
   shuffled.explain("extended")
   shuffled.show(false)
   ```
   
   ### 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