Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getOrCreateCarbonSession method parameter is an empty string repair[JIRA CARBONDATA-3119] #2959

Closed
wants to merge 3 commits into from

Conversation

zygitup
Copy link
Contributor

@zygitup zygitup commented Nov 28, 2018

1.No interface changes

2.Backward compatibility is not affected

3.The document does not need to be updated

val carbon = SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession("")
val carbon = SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession(" ")
carbon.sql("SELECT * FROM TABLE").show() is ok.

…scala getOrCreateCarbonSession method parameters Filter for null and empty string
…scala getOrCreateCarbonSession method parameters Filter for null and empty string
@CarbonDataQA
Copy link

Can one of the admins verify this patch?

@xubo245
Copy link
Contributor

xubo245 commented Nov 28, 2018

Please optimize the title: [CARBONDATA-3119]Fix the error of getOrCreateCarbonSession method parameter is an empty string
Please optimize the PR content, keep the checklist format and finish the checklist

@@ -15,58 +15,59 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to change, please keep the original format

@@ -1,135 +0,0 @@
# Presto Multinode Cluster setup For Carbondata
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you remove it?

@@ -614,7 +614,7 @@
<modules>
<module>integration/spark2</module>
<module>integration/hive</module>
<module>integration/presto</module>
<!--<module>integration/presto</module>-->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to change, please keep the original format

@@ -556,7 +556,7 @@
<modules>
<module>integration/spark2</module>
<module>integration/hive</module>
<module>integration/presto</module>
<!--<module>integration/presto</module>-->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to change, please keep the original format

@@ -496,7 +496,7 @@
<modules>
<module>integration/spark2</module>
<module>integration/hive</module>
<module>integration/presto</module>
<!--<module>integration/presto</module>-->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to change, please keep the original format

@@ -463,7 +463,7 @@
<module>integration/spark2</module>
<module>examples/spark2</module>
<module>integration/hive</module>
<module>integration/presto</module>
<!--<module>integration/presto</module>-->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to change, please keep the original format

/**
* It is a hack to get the private field from class.
*/
/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to change, please keep the original format

@@ -171,7 +173,7 @@ object CarbonSession {
}

def getOrCreateCarbonSession(storePath: String,
metaStorePath: String): SparkSession = synchronized {
metaStorePath: String): SparkSession = synchronized {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to change, please keep the original format

@@ -114,8 +115,8 @@ class CarbonSession(@transient val sc: SparkContext,
}

private def withProfiler(
sqlText: String,
generateDF: (QueryExecution, SQLStart) => DataFrame): DataFrame = {
sqlText: String,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to change, please keep the original format

/**
* Run SparkSQL directly
*/
/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to change, please keep the original format

* Return true if the specified sql statement will hit the datamap
* This API is for test purpose only
*/
/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to change, please keep the original format

@zygitup zygitup closed this Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants