[ 
https://issues.apache.org/jira/browse/CARBONDATA-3119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

张源 reassigned CARBONDATA-3119:
------------------------------

    Assignee: 张源

> 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: 张源
>            Assignee: 张源
>            Priority: Blocker
>              Labels: pull-request-available
>             Fix For: 1.5.0
>
>         Attachments: carbondata-error.doc
>
>   Original Estimate: 12h
>          Time Spent: 14h 40m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to