[ https://issues.apache.org/jira/browse/SPARK-14526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15235617#comment-15235617 ]
Davies Liu commented on SPARK-14526: ------------------------------------ It seems like a feature for a long time. It make more sense to be not case-sensitive (be compatible with Hive and other databases), should we change the default value of spark.sql.caseSensitive to false? cc [~marmbrus] [~rxin] > 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 > Priority: Blocker > > {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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org