Skip to content

Commit

Permalink
Fix show/drop cache test case(windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunal642 committed Mar 25, 2019
1 parent a242c85 commit 017003f
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -44,6 +44,9 @@ object CacheUtil {
CarbonDataMergerUtil.getValidSegmentList(absoluteTableIdentifier).asScala.flatMap {
segment =>
segment.getCommittedIndexFile.keySet().asScala
}.map { indexFile =>
indexFile.replace(CarbonCommonConstants.WINDOWS_FILE_SEPARATOR,
CarbonCommonConstants.FILE_SEPARATOR)
}.toList
} else {
val tablePath = carbonTable.getTablePath
Expand All @@ -53,6 +56,9 @@ object CacheUtil {
load =>
val seg = new Segment(load.getLoadName, null, readCommittedScope)
seg.getCommittedIndexFile.keySet().asScala
}.map { indexFile =>
indexFile.replace(CarbonCommonConstants.WINDOWS_FILE_SEPARATOR,
CarbonCommonConstants.FILE_SEPARATOR)
}.toList
}
}
Expand Down

0 comments on commit 017003f

Please sign in to comment.