[
https://issues.apache.org/jira/browse/CARBONDATA-3119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16701717#comment-16701717
]
xubo245 commented on CARBONDATA-3119:
-------------------------------------
Please use English in carbondata-error.doc because CarbonData developers are
from many country
> 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: 张源
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 1.5.0
>
> Attachments: carbondata-error.doc
>
> Original Estimate: 12h
> Time Spent: 0.5h
> Remaining Estimate: 11.5h
>
> 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)