[jira] [Commented] (SPARK-17560) SQLContext tables returns table names in lower case only
[ https://issues.apache.org/jira/browse/SPARK-17560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15495968#comment-15495968 ] Sean Owen commented on SPARK-17560: --- You just set it with --conf like other options. However I don't think you want to set this in general. I do not see what would need to be changed in Spark. > SQLContext tables returns table names in lower case only > > > Key: SPARK-17560 > URL: https://issues.apache.org/jira/browse/SPARK-17560 > Project: Spark > Issue Type: Bug >Affects Versions: 2.0.0 >Reporter: Aseem Bansal > > I registered a table using > dataSet.createOrReplaceTempView("TestTable"); > Then I tried to get the list of tables using > sparkSession.sqlContext().tableNames() > but the name that I got was testtable. It used to give table names in proper > case in Spark 1.4 -- 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
[jira] [Commented] (SPARK-17560) SQLContext tables returns table names in lower case only
[ https://issues.apache.org/jira/browse/SPARK-17560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15495960#comment-15495960 ] Aseem Bansal commented on SPARK-17560: -- Can you share where this option needs to be set? Maybe I can try and add a pull request unless it is easier for you to just add a PR yourself instead of explaining. > SQLContext tables returns table names in lower case only > > > Key: SPARK-17560 > URL: https://issues.apache.org/jira/browse/SPARK-17560 > Project: Spark > Issue Type: Bug >Affects Versions: 2.0.0 >Reporter: Aseem Bansal > > I registered a table using > dataSet.createOrReplaceTempView("TestTable"); > Then I tried to get the list of tables using > sparkSession.sqlContext().tableNames() > but the name that I got was testtable. It used to give table names in proper > case in Spark 1.4 -- 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
[jira] [Commented] (SPARK-17560) SQLContext tables returns table names in lower case only
[ https://issues.apache.org/jira/browse/SPARK-17560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15495955#comment-15495955 ] Sean Owen commented on SPARK-17560: --- It doesn't exist in Spark 1.4, and is an undocumented option. Behavior in 2.x is not necessarily the same as 1.x, and as i understand SQL is generally case insensitive now. > SQLContext tables returns table names in lower case only > > > Key: SPARK-17560 > URL: https://issues.apache.org/jira/browse/SPARK-17560 > Project: Spark > Issue Type: Bug >Affects Versions: 2.0.0 >Reporter: Aseem Bansal > > I registered a table using > dataSet.createOrReplaceTempView("TestTable"); > Then I tried to get the list of tables using > sparkSession.sqlContext().tableNames() > but the name that I got was testtable. It used to give table names in proper > case in Spark 1.4 -- 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
[jira] [Commented] (SPARK-17560) SQLContext tables returns table names in lower case only
[ https://issues.apache.org/jira/browse/SPARK-17560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15495906#comment-15495906 ] Aseem Bansal commented on SPARK-17560: -- Looked through https://spark.apache.org/docs/2.0.0/sql-programming-guide.html https://spark.apache.org/docs/2.0.0/api/java/org/apache/spark/sql/Dataset.html https://spark.apache.org/docs/2.0.0/api/java/org/apache/spark/sql/SparkSession.html https://spark.apache.org/docs/2.0.0/api/java/org/apache/spark/SparkConf.html and none of them say anything about this parameter > SQLContext tables returns table names in lower case only > > > Key: SPARK-17560 > URL: https://issues.apache.org/jira/browse/SPARK-17560 > Project: Spark > Issue Type: Bug >Affects Versions: 2.0.0 >Reporter: Aseem Bansal > > I registered a table using > dataSet.createOrReplaceTempView("TestTable"); > Then I tried to get the list of tables using > sparkSession.sqlContext().tableNames() > but the name that I got was testtable. It used to give table names in proper > case in Spark 1.4 -- 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
[jira] [Commented] (SPARK-17560) SQLContext tables returns table names in lower case only
[ https://issues.apache.org/jira/browse/SPARK-17560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15495862#comment-15495862 ] Aseem Bansal commented on SPARK-17560: -- No I did not. Where? > SQLContext tables returns table names in lower case only > > > Key: SPARK-17560 > URL: https://issues.apache.org/jira/browse/SPARK-17560 > Project: Spark > Issue Type: Bug >Affects Versions: 2.0.0 >Reporter: Aseem Bansal > > I registered a table using > dataSet.createOrReplaceTempView("TestTable"); > Then I tried to get the list of tables using > sparkSession.sqlContext().tableNames() > but the name that I got was testtable. It used to give table names in proper > case in Spark 1.4 -- 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
[jira] [Commented] (SPARK-17560) SQLContext tables returns table names in lower case only
[ https://issues.apache.org/jira/browse/SPARK-17560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15495832#comment-15495832 ] Sean Owen commented on SPARK-17560: --- Did you set spark.sql.caseSensitive=true? > SQLContext tables returns table names in lower case only > > > Key: SPARK-17560 > URL: https://issues.apache.org/jira/browse/SPARK-17560 > Project: Spark > Issue Type: Bug >Affects Versions: 2.0.0 >Reporter: Aseem Bansal > > I registered a table using > dataSet.createOrReplaceTempView("TestTable"); > Then I tried to get the list of tables using > sparkSession.sqlContext().tableNames() > but the name that I got was testtable. It used to give table names in proper > case in Spark 1.4 -- 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