You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2015/05/12 02:09:01 UTC
[jira] [Commented] (SPARK-7551) Don't split by dot if within
backticks for DataFrame attribute resolution
[ https://issues.apache.org/jira/browse/SPARK-7551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14538930#comment-14538930 ]
Reynold Xin commented on SPARK-7551:
------------------------------------
[~cloud_fan] do you have time for this? Would be great to have it in 1.4.
> Don't split by dot if within backticks for DataFrame attribute resolution
> -------------------------------------------------------------------------
>
> Key: SPARK-7551
> URL: https://issues.apache.org/jira/browse/SPARK-7551
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Reporter: Reynold Xin
> Assignee: Wenchen Fan
>
> DataFrame's resolve:
> {code}
> protected[sql] def resolve(colName: String): NamedExpression = {
> queryExecution.analyzed.resolve(colName.split("\\."), sqlContext.analyzer.resolver).getOrElse {
> throw new AnalysisException(
> s"""Cannot resolve column name "$colName" among (${schema.fieldNames.mkString(", ")})""")
> }
> }
> {code}
> We should not split the parts quoted by backticks (`).
--
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