[ https://issues.apache.org/jira/browse/SPARK-36371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiao Li updated SPARK-36371: ---------------------------- Labels: release-notes (was: ) > Support raw string literal > -------------------------- > > Key: SPARK-36371 > URL: https://issues.apache.org/jira/browse/SPARK-36371 > Project: Spark > Issue Type: New Feature > Components: SQL > Affects Versions: 3.3.0 > Reporter: Kousuke Saruta > Assignee: Kousuke Saruta > Priority: Major > Labels: release-notes > Fix For: 3.3.0 > > > In the current master, sometimes it's too confusable to represent JSON and > regex in a string literal if they contain backslash. > For example, in JSON, \ needs to be escaped like as follows. > {code} > {"a": "\\"} > {code} > But, if the JSON above is represented in a string literal, further two \ are > needed because string literal also requires \ to be escaped. > {code} > SELECT from_json('{"a": "\\\\"}', 'a string') > {"a":"\"} > {code} > To make such case simpler, it's great if Spark supports raw string literal. -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org