From 7e1916c0b5c08c75af8fd95bcf533891d9d91c37 Mon Sep 17 00:00:00 2001 From: Holden Karau Date: Fri, 17 Nov 2023 22:54:59 -0800 Subject: [PATCH] We don't need the toArray and with that it compiles for 3.4 and 3.5 w/Scala 2.13 --- .../org/apache/spark/sql/hive/HivePartitionConverter.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluten-core/src/main/scala/org/apache/spark/sql/hive/HivePartitionConverter.scala b/gluten-core/src/main/scala/org/apache/spark/sql/hive/HivePartitionConverter.scala index 2825730e938d..e8380ce2b0f5 100644 --- a/gluten-core/src/main/scala/org/apache/spark/sql/hive/HivePartitionConverter.scala +++ b/gluten-core/src/main/scala/org/apache/spark/sql/hive/HivePartitionConverter.scala @@ -111,7 +111,7 @@ class HivePartitionConverter(hadoopConf: Configuration, session: SparkSession) } }) .filter(isNonEmptyDataFile) - PartitionDirectory(partValues, dirContents.toArray) + PartitionDirectory(partValues, dirContents) } }