Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-36854][SQL] Handle ANSI intervals by the off-heap column vector
### What changes were proposed in this pull request? Modify `OffHeapColumnVector.reserveInternal` to handle ANSI intervals - `DayTimeIntervalType` and `YearMonthIntervalType`. ### Why are the changes needed? The changes fix the issue which the example below demonstrates: ```scala scala> spark.conf.set("spark.sql.columnVector.offheap.enabled", true) scala> spark.read.parquet("/Users/maximgekk/tmp/parquet_offheap").show() 21/09/25 22:09:03 ERROR Executor: Exception in task 0.0 in stage 3.0 (TID 3) java.lang.RuntimeException: Unhandled YearMonthIntervalType(0,1) at org.apache.spark.sql.execution.vectorized.OffHeapColumnVector.reserveInternal(OffHeapColumnVector.java:562) ``` SPARK-36854 shows how the parquet files in `/Users/maximgekk/tmp/parquet_offheap` were prepared. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? By running the modified test suite: ``` $ build/sbt "sql/test:testOnly *ParquetIOSuite" ``` Closes apache#34106 from MaxGekk/ansi-interval-OffHeapColumnVector. Authored-by: Max Gekk <max.gekk@gmail.com> Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
- Loading branch information