Skip to content

Commit 2c8a228

Browse files
committed
fix merge
1 parent 1ad2f83 commit 2c8a228

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/ParquetHiveCompatibilitySuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,8 @@ class ParquetHiveCompatibilitySuite extends ParquetCompatibilityTest with TestHi
243243
// Note that we only store the timezone in the table property, so when we read the
244244
// data this way, we're bypassing all of the conversion logic, and reading the raw
245245
// values in the parquet file.
246-
val onDiskLocation = """file:(.*)""".r.findFirstMatchIn(spark.sessionState.catalog
247-
.getTableMetadata(TableIdentifier(s"insert_$baseTable")).location).get.group(1)
246+
val onDiskLocation = spark.sessionState.catalog
247+
.getTableMetadata(TableIdentifier(s"insert_$baseTable")).location.getPath
248248
val readFromDisk = spark.read.parquet(onDiskLocation).collect()
249249
.map(_.getAs[Timestamp](0))
250250
val expectedReadFromDisk = expectedTableTz match {

0 commit comments

Comments
 (0)