You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2020/03/16 22:53:04 UTC
[jira] [Updated] (SPARK-24125) Add quoting rules to SQL guide
[ https://issues.apache.org/jira/browse/SPARK-24125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun updated SPARK-24125:
----------------------------------
Affects Version/s: (was: 3.0.0)
3.1.0
> Add quoting rules to SQL guide
> ------------------------------
>
> Key: SPARK-24125
> URL: https://issues.apache.org/jira/browse/SPARK-24125
> Project: Spark
> Issue Type: Improvement
> Components: Documentation
> Affects Versions: 3.1.0
> Reporter: Henry Robinson
> Priority: Minor
>
> As far as I can tell, Spark SQL's quoting rules are as follows:
> * {{`foo bar`}} is an identifier
> * {{'foo bar'}} is a string literal
> * {{"foo bar"}} is a string literal
> The last of these is non-standard (usually {{"foo bar"}} is an identifier), and so it's probably worth mentioning these rules in the 'reference' section of the [SQL guide|http://spark.apache.org/docs/latest/sql-programming-guide.html#reference].
> I'm assuming there's not a lot of enthusiasm to change the quoting rules, given it would be a breaking change, and that backticks work just fine as an alternative.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org