[ https://issues.apache.org/jira/browse/SPARK-17832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Herman van Hovell resolved SPARK-17832. --------------------------------------- Resolution: Fixed Assignee: Jiang Xingbo Fix Version/s: 2.1.0 2.0.2 > 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 > Assignee: Jiang Xingbo > Priority: Minor > Fix For: 2.0.2, 2.1.0 > > > 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