Skip to content
Prev Previous commit
Next Next commit
address comments
  • Loading branch information
yaooqinn committed Jun 11, 2024
commit 74dee2bcc48a3ed61f7ec0f99047f1909c207d6e
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ object ExternalCatalogUtils {
while (firstIndex < length && !needsEscaping(path.charAt(firstIndex))) {
firstIndex += 1
}
if (firstIndex == 0 && !needsEscaping(path.charAt(0))) {
if (firstIndex == length) {
path
} else {
val sb = new java.lang.StringBuilder(length + 16)
Expand Down