Skip to content
Prev Previous commit
Next Next commit
corner case
  • Loading branch information
yaooqinn committed Jun 7, 2024
commit c6a0cf7eb7021470774f09b04b72949da74a19bf
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ object ExternalCatalogUtils {
}

def escapePathName(path: String): String = {
if (path == null || path.isEmpty) {
return path
}
val length = path.length
var firstIndex = 0
while (firstIndex < length && !needsEscaping(path.charAt(firstIndex))) {
Expand Down