GitHub user zygitup opened a pull request:
https://github.com/apache/carbondata/pull/2959
getOrCreateCarbonSession method parameter is an empty string repair[JIRA
CARBONDATA-3119]
1.No interface changes
2.Backward compatibility is not affected
3.The document does not need to be updated
4.
val carbon =
SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession("")
val carbon =
SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession(" ")
carbon.sql("SELECT * FROM TABLE").show() is ok.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zygitup/carbondata master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/carbondata/pull/2959.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2959
----
commit 945d0fda4c60ec3300a06d0b71a923a86fd65f2b
Author: zygitup <18310672430@...>
Date: 2018-11-28T08:46:59Z
integration/spark2/src/main/scala/org/apache/spark/sql/CarbonSession.scala
getOrCreateCarbonSession method parameters Filter for null and empty string
commit efc293b8ed3054edfc77002a9a049e34af476ce6
Author: zygitup <18310672430@...>
Date: 2018-11-28T08:48:35Z
integration/spark2/src/main/scala/org/apache/spark/sql/CarbonSession.scala
getOrCreateCarbonSession method parameters Filter for null and empty string
commit b8409583ef6463a070998640451c7158b22a126f
Author: zygitup <18310672430@...>
Date: 2018-11-28T08:53:38Z
add all
----
---