You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Adrian Wang (JIRA)" <ji...@apache.org> on 2015/04/30 05:08:06 UTC

[jira] [Commented] (SPARK-7149) Defalt system alias problem

    [ https://issues.apache.org/jira/browse/SPARK-7149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14520764#comment-14520764 ] 

Adrian Wang commented on SPARK-7149:
------------------------------------

what's the schema of your testData table?

I have tried the one defined in TestData.scala, which is defined as case class TestData(key: Int, value: String), and I get no exception.

Is this because you have a `c0` in your testData schema?

> Defalt system alias problem
> ---------------------------
>
>                 Key: SPARK-7149
>                 URL: https://issues.apache.org/jira/browse/SPARK-7149
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: haiyang
>
> Fix default system alias problem.
> execute the sql statement will cause problem: 
> select substr(concat('value', value), 1, 3), key as c0 from testData order by c0
> org.apache.spark.sql.AnalysisException: Reference 'c0' is ambiguous, could be: c0#42, c0#41.;



--
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