You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@carbondata.apache.org by ja...@apache.org on 2016/11/28 13:03:54 UTC
[1/2] incubator-carbondata git commit: Fix the bug of storePath
substring on windows
Repository: incubator-carbondata
Updated Branches:
refs/heads/master 1f0955841 -> 23bae4c4a
Fix the bug of storePath substring on windows
Project: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/commit/db981618
Tree: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/tree/db981618
Diff: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/diff/db981618
Branch: refs/heads/master
Commit: db9816189575e7c1b30e05c36e804dfaefcde129
Parents: 1f09558
Author: Zhangshunyu <zh...@huawei.com>
Authored: Sat Nov 26 18:22:22 2016 +0800
Committer: jackylk <ja...@huawei.com>
Committed: Mon Nov 28 20:52:26 2016 +0800
----------------------------------------------------------------------
.../apache/carbondata/core/carbon/AbsoluteTableIdentifier.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-carbondata/blob/db981618/core/src/main/java/org/apache/carbondata/core/carbon/AbsoluteTableIdentifier.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/carbondata/core/carbon/AbsoluteTableIdentifier.java b/core/src/main/java/org/apache/carbondata/core/carbon/AbsoluteTableIdentifier.java
index 91c01fb..cf7d92f 100644
--- a/core/src/main/java/org/apache/carbondata/core/carbon/AbsoluteTableIdentifier.java
+++ b/core/src/main/java/org/apache/carbondata/core/carbon/AbsoluteTableIdentifier.java
@@ -66,14 +66,15 @@ public class AbsoluteTableIdentifier implements Serializable {
}
public static AbsoluteTableIdentifier fromTablePath(String tablePath) {
- String[] names = tablePath.replace('\\', '/').split("/");
+ String formattedTablePath = tablePath.replace('\\', '/');
+ String[] names = formattedTablePath.split("/");
if (names.length < 3) {
throw new IllegalArgumentException("invalid table path: " + tablePath);
}
String tableName = names[names.length - 1];
String dbName = names[names.length - 2];
- String storePath = tablePath.substring(0, tablePath.lastIndexOf(dbName +
+ String storePath = formattedTablePath.substring(0, formattedTablePath.lastIndexOf(dbName +
CarbonCommonConstants.FILE_SEPARATOR + tableName));
CarbonTableIdentifier identifier =
[2/2] incubator-carbondata git commit: [CARBONDATA-451]Fix the bug of
storePath.substring on windows which lead to query can not run This closes
#357
Posted by ja...@apache.org.
[CARBONDATA-451]Fix the bug of storePath.substring on windows which lead to query can not run This closes #357
Project: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/commit/23bae4c4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/tree/23bae4c4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-carbondata/diff/23bae4c4
Branch: refs/heads/master
Commit: 23bae4c4ab1c489e3ed58c87337528b9908f2178
Parents: 1f09558 db98161
Author: jackylk <ja...@huawei.com>
Authored: Mon Nov 28 21:03:39 2016 +0800
Committer: jackylk <ja...@huawei.com>
Committed: Mon Nov 28 21:03:39 2016 +0800
----------------------------------------------------------------------
.../apache/carbondata/core/carbon/AbsoluteTableIdentifier.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------