databricks-david-lewis commented on code in PR #39488: URL: https://github.com/apache/spark/pull/39488#discussion_r1073681610
########## sql/core/src/main/scala/org/apache/spark/sql/execution/DataSourceScanExec.scala: ########## @@ -632,8 +632,8 @@ case class FileSourceScanExec( } }.groupBy { f => BucketingUtils - .getBucketId(new Path(f.filePath).getName) - .getOrElse(throw QueryExecutionErrors.invalidBucketFile(f.filePath)) + .getBucketId(f.toPath.getName) + .getOrElse(throw QueryExecutionErrors.invalidBucketFile(f.urlEncodedPath)) Review Comment: I tend to agree, because users are always providing the path strings as input (I think?). But that would be a behavior change I think. Since this is not a behavioral bug, I would prefer to leave that change to later. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org