Peng-Lei commented on a change in pull request #34446:
URL: https://github.com/apache/spark/pull/34446#discussion_r739907618
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/vectorized/ColumnarBatchSuite.scala
##########
@@ -1688,6 +1688,45 @@ class ColumnarBatchSuite extends SparkFunSuite {
}
}
+ test("SPARK-37161: RowToColumnConverter for AnsiIntervalType") {
+ DataTypeTestUtils.yearMonthIntervalTypes.foreach { dt =>
+ val schema = new StructType().add(dt.typeName, dt)
+ val converter = new RowToColumnConverter(schema)
+ val columns = OnHeapColumnVector.allocateColumns(10, schema)
+ val batch = new ColumnarBatch(columns.toArray, 3)
Review comment:
Sorry, a mistake. It should be `val batch = new
ColumnarBatch(columns.toArray, **10**)`, It's meant to free up
resources(`batch.close()`) instead of `columns.foreach(_.close())`
--
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]