[ 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org