databricks-david-lewis commented on code in PR #39488:
URL: https://github.com/apache/spark/pull/39488#discussion_r1067285845
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileScanRDD.scala:
##########
@@ -140,14 +147,14 @@ class FileScanRDD(
private def updateMetadataRow(): Unit =
if (metadataColumns.nonEmpty && currentFile != null) {
updateMetadataInternalRow(metadataRow, metadataColumns.map(_.name),
- new Path(currentFile.filePath), currentFile.fileSize,
currentFile.modificationTime)
+ currentFile.toPath, currentFile.fileSize,
currentFile.modificationTime)
}
/**
* Create an array of constant column vectors containing all required
metadata columns
*/
private def createMetadataColumnVector(c: ColumnarBatch):
Array[ColumnVector] = {
- val path = new Path(currentFile.filePath)
Review Comment:
This was a bug, we were creating a Path from the uri encoded string. In the
case of path with special characters, they were being escaped twice.
--
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]