Skip to content
Prev Previous commit
Next Next commit
Update sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/cata…
…log/ExternalCatalogUtils.scala

Co-authored-by: Josh Rosen <[email protected]>
  • Loading branch information
yaooqinn and JoshRosen authored Jun 7, 2024
commit d04b589ff9bb82ece9da5aad9d35fc92def0021c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ object ExternalCatalogUtils {
if (firstIndex == 0) {
path
} else {
val sb = new StringBuilder(path.substring(0, firstIndex))
val sb = new java.lang.StringBuilder(length + 16)
sb.append(path.substring(0, firstIndex))
while(firstIndex < length) {
val c = path.charAt(firstIndex)
if (needsEscaping(c)) {
Expand Down