You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "张源 (JIRA)" <ji...@apache.org> on 2018/11/22 02:47:00 UTC

[jira] [Created] (CARBONDATA-3119) The getOrCreateCarbonSession method 'storePath' parameter only checks for null,Causes the data store path to be an empty string and no exception is reported.Results in no results for the final select data

张源 created CARBONDATA-3119:
------------------------------

             Summary: The getOrCreateCarbonSession method 'storePath' parameter only checks for null,Causes the data store path to be an empty string and no exception is reported.Results in no results for the final select data
                 Key: CARBONDATA-3119
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-3119
             Project: CarbonData
          Issue Type: Improvement
          Components: spark-integration
    Affects Versions: 1.5.0
            Reporter: 张源
             Fix For: 1.5.0
         Attachments: carbondata-error.doc

val carbon = SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession("");

if (storePath != null) {
 carbonProperties.addProperty(CarbonCommonConstants.STORE_LOCATION, storePath)
 // In case if it is in carbon.properties for backward compatible
} else if (carbonProperties.getProperty(CarbonCommonConstants.STORE_LOCATION) == null) {
 carbonProperties.addProperty(CarbonCommonConstants.STORE_LOCATION,
 session.sessionState.conf.warehousePath)
}
h3. *explain:*

The getOrCreateCarbonSession method storePath parameter only checks for null,Causes the data store path to be an empty string and no exception is reported.Results in no results for the final select data.

Please see the attachment for examples



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)