spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Li (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-13947) The error message from using an invalid table reference is not clear
Date Wed, 22 Mar 2017 03:16:41 GMT

     [ https://issues.apache.org/jira/browse/SPARK-13947?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xiao Li updated SPARK-13947:
----------------------------
    Priority: Minor  (was: Major)

> The error message from using an invalid table reference is not clear
> --------------------------------------------------------------------
>
>                 Key: SPARK-13947
>                 URL: https://issues.apache.org/jira/browse/SPARK-13947
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Wes McKinney
>            Priority: Minor
>
> {code}
> import numpy as np
> import pandas as pd
> df = pd.DataFrame({'foo': np.random.randn(1000),
>                    'bar': np.random.randn(1000)})
> df2 = pd.DataFrame({'foo': np.random.randn(1000),
>                     'bar': np.random.randn(1000)})
> sdf = sqlContext.createDataFrame(df)
> sdf2 = sqlContext.createDataFrame(df2)
> sdf[sdf2.foo > 0]
> {code}
> Produces this error message:
> {code}
> AnalysisException: u'resolved attribute(s) foo#91 missing from bar#87,foo#88 in operator
!Filter (foo#91 > cast(0 as double));'
> {code}
> It may be possible to make it more clear what the user did wrong. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message