Indhumathi27 commented on a change in pull request #3727:
URL: https://github.com/apache/carbondata/pull/3727#discussion_r415536756
##########
File path: core/src/main/java/org/apache/carbondata/core/view/MVProvider.java
##########
@@ -105,10 +89,14 @@ private SchemaProvider getSchemaProvider(String
databaseName) {
if (schemaProvider == null) {
String databaseLocation;
if
(databaseNameUpper.equalsIgnoreCase(CarbonCommonConstants.DATABASE_DEFAULT_NAME))
{
- databaseLocation =
CarbonUtil.checkAndAppendHDFSUrl(this.storeLocation);
+ databaseLocation = CarbonUtil.checkAndAppendHDFSUrl(
+ viewManager.getDatabaseLocation(databaseName)
Review comment:
Please move getting database location before ifElse statement and reuse
it in if and else block
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]