uros-b opened a new pull request, #58652: URL: https://github.com/apache/spark/pull/58652
### What changes were proposed in this pull request? `SparkSchemaUtils.escapeMetaCharacters` (in `common/utils`, wrapped by `SchemaUtils` and used by `StructField`) had no unit test. This adds `SparkSchemaUtilsSuite` covering: - escaping of each supported control character (newline, carriage return, tab, form feed, backspace, vertical tab, bell); - pass-through of ordinary input (empty string, printable text, a plain space); - escaping of every occurrence in mixed input. ### Why are the changes needed? The helper is used when rendering schema / field information, but its escaping behavior was untested. These tests pin the current contract so regressions are caught. ### Does this PR introduce _any_ user-facing change? No. Test-only. ### How was this patch tested? The new suite: `build/sbt "common-utils/testOnly org.apache.spark.util.SparkSchemaUtilsSuite"` (succeeded 3, failed 0). ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Code (Opus 4.8) -- 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]
