You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Herman van Hovell (JIRA)" <ji...@apache.org> on 2016/10/07 21:05:21 UTC

[jira] [Updated] (SPARK-17832) TableIdentifier.quotedString creates un-parseable names when name contains a backtick

     [ https://issues.apache.org/jira/browse/SPARK-17832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herman van Hovell updated SPARK-17832:
--------------------------------------
    Summary: TableIdentifier.quotedString creates un-parseable names when name contains a backtick  (was: TableIdentifier.quotedString creates un-parseable names when name contains a backpack)

> TableIdentifier.quotedString creates un-parseable names when name contains a backtick
> -------------------------------------------------------------------------------------
>
>                 Key: SPARK-17832
>                 URL: https://issues.apache.org/jira/browse/SPARK-17832
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Herman van Hovell
>            Priority: Minor
>
> The {{quotedString}} method in {{TableIdentifier}} and {{FunctionIdentifier}} produce an illegal (un-parseable) name when the name contains a backtick. For example:
> {noformat}
> import org.apache.spark.sql.catalyst.parser.CatalystSqlParser._
> import org.apache.spark.sql.catalyst.TableIdentifier
> import org.apache.spark.sql.catalyst.analysis.UnresolvedAttribute
> val complexName = TableIdentifier("`weird`table`name", Some("`d`b`1"))
> parseTableIdentifier(complexName.unquotedString) // Does not work
> parseTableIdentifier(complexName.quotedString) // Does not work
> UnresolvedAttribute.parseAttributeName(complexName.unquotedString) // Does not work
> UnresolvedAttribute.parseAttributeName(complexName.quotedString) // Does not work
> {noformat}
> The {{quotedString}} method should escape backticks properly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org