zhengruifeng opened a new pull request, #47608:
URL: https://github.com/apache/spark/pull/47608

   ### What changes were proposed in this pull request?
   Make `createLocalRelationProto` support relation with `TimestampType`
   
   
   ### Why are the changes needed?
   existing helper function `createLocalRelationProto` cannot create table with 
`TimestampType`:
   
   ```
     org.apache.spark.SparkException: [INTERNAL_ERROR] Missing timezoneId where 
it is mandatory. SQLSTATE: XX000
     at org.apache.spark.SparkException$.internalError(SparkException.scala:99)
     at org.apache.spark.SparkException$.internalError(SparkException.scala:103)
     at org.apache.spark.sql.util.ArrowUtils$.toArrowType(ArrowUtils.scala:57)
     at org.apache.spark.sql.util.ArrowUtils$.toArrowField(ArrowUtils.scala:139)
     at 
org.apache.spark.sql.util.ArrowUtils$.$anonfun$toArrowSchema$1(ArrowUtils.scala:181)
     at 
scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
     at scala.collection.Iterator.foreach(Iterator.scala:943)
     at scala.collection.Iterator.foreach$(Iterator.scala:943)
     at scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
     at scala.collection.IterableLike.foreach(IterableLike.scala:74)
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   No, test-only
   
   ### How was this patch tested?
   added ut
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   no


-- 
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: reviews-unsubscr...@spark.apache.org

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


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

Reply via email to