Josh Rosen created SPARK-48686:
----------------------------------
Summary: Improve performance of ParserUtils.unescapeSQLString
Key: SPARK-48686
URL: https://issues.apache.org/jira/browse/SPARK-48686
Project: Spark
Issue Type: Improvement
Components: SQL
Affects Versions: 4.0.0
Reporter: Josh Rosen
Assignee: Josh Rosen
The `ParserUtils.unescapeSQLString` method is currently implemented using
regexes for part of the parsing, but this slows down the common case where
escaping is not needed and may be prone to O(n^2) behavior for certain extreme
inputs.
I think that we should optimize this to remove the use of regexes.
I will submit a PR for this.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]