You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/04/11 10:02:25 UTC

[jira] [Commented] (SPARK-14526) The catalog of SQLContext should not be case-sensitive

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

Apache Spark commented on SPARK-14526:
--------------------------------------

User 'davies' has created a pull request for this issue:
https://github.com/apache/spark/pull/12295

> The catalog of SQLContext should not be case-sensitive 
> -------------------------------------------------------
>
>                 Key: SPARK-14526
>                 URL: https://issues.apache.org/jira/browse/SPARK-14526
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.0.0
>            Reporter: Davies Liu
>            Assignee: Andrew Or
>
> {code}
> >>> from pyspark.sql import SQLContext
> >>> ctx = SQLContext(sc)
> >>> ctx.range(10).registerTempTable("t")
> >>> ctx.table("T")
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/Users/davies/work/spark/python/pyspark/sql/context.py", line 522, in table
>     return DataFrame(self._ssql_ctx.table(tableName), self)
>   File "/Users/davies/work/spark/python/lib/py4j-0.9.2-src.zip/py4j/java_gateway.py", line 836, in __call__
>   File "/Users/davies/work/spark/python/pyspark/sql/utils.py", line 57, in deco
>     raise AnalysisException(s.split(': ', 1)[1], stackTrace)
> pyspark.sql.utils.AnalysisException: u"Table not found: 'T' does not exist in database 'default';"
> {code}
> Is this a feature or a bug?



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