This is an automated email from the ASF dual-hosted git repository.

parthc pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion-comet.git


The following commit(s) were added to refs/heads/main by this push:
     new b6fd7872a Replace catalyst.util.fileToString with Files.readString 
(#3844)
b6fd7872a is described below

commit b6fd7872a7a78a8fcab4b99799cd0359aeda4935
Author: Steve Vaughan <[email protected]>
AuthorDate: Mon Mar 30 17:28:08 2026 -0400

    Replace catalyst.util.fileToString with Files.readString (#3844)
---
 .../test/scala/org/apache/spark/sql/CometTPCDSQueryTestSuite.scala    | 4 ++--
 spark/src/test/scala/org/apache/spark/sql/CometTPCHQuerySuite.scala   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/spark/src/test/scala/org/apache/spark/sql/CometTPCDSQueryTestSuite.scala 
b/spark/src/test/scala/org/apache/spark/sql/CometTPCDSQueryTestSuite.scala
index 56f5bcfde..ec1e7d393 100644
--- a/spark/src/test/scala/org/apache/spark/sql/CometTPCDSQueryTestSuite.scala
+++ b/spark/src/test/scala/org/apache/spark/sql/CometTPCDSQueryTestSuite.scala
@@ -25,7 +25,7 @@ import java.nio.file.{Files, Paths}
 import scala.jdk.CollectionConverters._
 
 import org.apache.spark.{SparkConf, SparkContext}
-import org.apache.spark.sql.catalyst.util.{fileToString, resourceToString, 
stringToFile}
+import org.apache.spark.sql.catalyst.util.{resourceToString, stringToFile}
 import org.apache.spark.sql.internal.SQLConf
 import org.apache.spark.sql.test.TestSparkSession
 
@@ -118,7 +118,7 @@ class CometTPCDSQueryTestSuite extends QueryTest with 
TPCDSBase with CometSQLQue
 
         // Read back the golden file.
         val (expectedSchema, expectedOutput) = {
-          val goldenOutput = fileToString(goldenFile)
+          val goldenOutput = Files.readString(goldenFile.toPath)
           val segments = goldenOutput.split("-- !query.*\n")
 
           // query has 3 segments, plus the header
diff --git 
a/spark/src/test/scala/org/apache/spark/sql/CometTPCHQuerySuite.scala 
b/spark/src/test/scala/org/apache/spark/sql/CometTPCHQuerySuite.scala
index e158af633..608ecfe2c 100644
--- a/spark/src/test/scala/org/apache/spark/sql/CometTPCHQuerySuite.scala
+++ b/spark/src/test/scala/org/apache/spark/sql/CometTPCHQuerySuite.scala
@@ -27,7 +27,7 @@ import scala.jdk.CollectionConverters._
 import org.apache.spark.{SparkConf, SparkContext}
 import org.apache.spark.internal.config.{MEMORY_OFFHEAP_ENABLED, 
MEMORY_OFFHEAP_SIZE}
 import org.apache.spark.sql.catalyst.TableIdentifier
-import org.apache.spark.sql.catalyst.util.{fileToString, resourceToString, 
stringToFile}
+import org.apache.spark.sql.catalyst.util.{resourceToString, stringToFile}
 import org.apache.spark.sql.internal.SQLConf
 import org.apache.spark.sql.test.TestSparkSession
 
@@ -162,7 +162,7 @@ class CometTPCHQuerySuite extends QueryTest with TPCBase 
with ShimCometTPCHQuery
 
         // Read back the golden file.
         val (expectedSchema, expectedOutput) = {
-          val goldenOutput = fileToString(goldenFile)
+          val goldenOutput = Files.readString(goldenFile.toPath)
           val segments = goldenOutput.split("-- !query.*\n")
 
           // query has 3 segments, plus the header


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to