Posted by
GitBox on
Dec 03, 2020; 4:02pm
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/GitHub-carbondata-akkio-97-opened-a-new-pull-request-4001-WIP-tp103064p104215.html
ajantha-bhat commented on a change in pull request #4001:
URL:
https://github.com/apache/carbondata/pull/4001#discussion_r535365097##########
File path: integration/spark/src/main/scala/org/apache/spark/sql/execution/command/management/CarbonAddLoadCommand.scala
##########
@@ -89,8 +89,13 @@ case class CarbonAddLoadCommand(
throw new ConcurrentOperationException(carbonTable, "insert overwrite", "add segment")
}
- val inputPath = options.getOrElse(
+ var givenPath = options.getOrElse(
"path", throw new UnsupportedOperationException("PATH is mandatory"))
+ // remove file separator if already present
+ if (givenPath.charAt(givenPath.length - 1) == '/') {
Review comment:
```suggestion
if (givenPath.charAt(givenPath.length - 1) == 'CarbonCommonConstans.FILE_SEPARATOR') {
```
----------------------------------------------------------------
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:
[hidden email]