AngersZhuuuu commented on a change in pull request #32993:
URL: https://github.com/apache/spark/pull/32993#discussion_r656714382
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/arrow/ArrowWriterSuite.scala
##########
@@ -30,7 +30,11 @@ class ArrowWriterSuite extends SparkFunSuite {
test("simple") {
def check(dt: DataType, data: Seq[Any], timeZoneId: String = null): Unit =
{
- val schema = new StructType().add("value", dt, nullable = true)
+ val avroDatatype = dt match {
+ case _: YearMonthIntervalType => YearMonthIntervalType()
Review comment:
> Sorry, I didn't get this. Do you always test only
`YearMonthIntervalType()`?
We can write different field of YearMonthIntervalType tp arrow, but in
arrow's type it only support year_to_month

And the IntervalUnit only support year_to_month,

So when we read data from Arrow, it only can be default
YearMonthIntervalType()
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]