Posted by
GitBox on
Dec 04, 2020; 9:19am
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/GitHub-carbondata-akkio-97-opened-a-new-pull-request-4001-WIP-tp103064p104263.html
akkio-97 commented on a change in pull request #4001:
URL:
https://github.com/apache/carbondata/pull/4001#discussion_r535951357##########
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) == '/') {
+ givenPath = givenPath.substring(0, givenPath.length - 1)
+ }
+ val inputPath = givenPath
Review comment:
done
----------------------------------------------------------------
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]