You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/10/08 11:02:20 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=15557760#comment-15557760 ] 

Apache Spark commented on SPARK-17832:
--------------------------------------

User 'jiangxb1987' has created a pull request for this issue:
https://github.com/apache/spark/pull/15403

> 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