Skip to content

Commit c34120f

Browse files
committed
Self-review
1 parent f17efa6 commit c34120f

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

integration-tests/src/main/java/org/apache/polaris/service/it/test/PolarisRestCatalogViewAdlsIntegrationTestBase.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
*/
1919
package org.apache.polaris.service.it.test;
2020

21-
import com.google.common.base.Strings;
21+
import java.io.File;
2222
import java.util.List;
23-
import org.apache.hadoop.fs.Path;
2423
import org.apache.polaris.core.admin.model.AzureStorageConfigInfo;
2524
import org.apache.polaris.core.admin.model.StorageConfigInfo;
2625
import org.apache.polaris.core.storage.StorageUtil;
@@ -38,12 +37,12 @@ protected StorageConfigInfo getStorageConfigInfo() {
3837
.setStorageType(StorageConfigInfo.StorageTypeEnum.AZURE)
3938
.setAllowedLocations(
4039
List.of(
41-
StorageUtil.concatFilePrefixes(BASE_LOCATION, POLARIS_IT_SUBDIR, Path.SEPARATOR)))
40+
StorageUtil.concatFilePrefixes(BASE_LOCATION, POLARIS_IT_SUBDIR, File.separator)))
4241
.build();
4342
}
4443

4544
@Override
4645
protected String getCustomMetadataLocationDir() {
47-
return new Path(BASE_LOCATION, POLARIS_IT_CUSTOM_SUBDIR).toString();
46+
return StorageUtil.concatFilePrefixes(BASE_LOCATION, POLARIS_IT_SUBDIR, File.separator);
4847
}
4948
}

integration-tests/src/main/java/org/apache/polaris/service/it/test/PolarisRestCatalogViewGcsIntegrationTestBase.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
*/
1919
package org.apache.polaris.service.it.test;
2020

21-
import com.google.common.base.Strings;
21+
import java.io.File;
2222
import java.util.List;
23-
import org.apache.hadoop.fs.Path;
2423
import org.apache.polaris.core.admin.model.GcpStorageConfigInfo;
2524
import org.apache.polaris.core.admin.model.StorageConfigInfo;
2625
import org.apache.polaris.core.storage.StorageUtil;
@@ -39,12 +38,12 @@ protected StorageConfigInfo getStorageConfigInfo() {
3938
.setStorageType(StorageConfigInfo.StorageTypeEnum.GCS)
4039
.setAllowedLocations(
4140
List.of(
42-
StorageUtil.concatFilePrefixes(BASE_LOCATION, POLARIS_IT_SUBDIR, Path.SEPARATOR)))
41+
StorageUtil.concatFilePrefixes(BASE_LOCATION, POLARIS_IT_SUBDIR, File.separator)))
4342
.build();
4443
}
4544

4645
@Override
4746
protected String getCustomMetadataLocationDir() {
48-
return new Path(BASE_LOCATION, POLARIS_IT_CUSTOM_SUBDIR).toString();
47+
return StorageUtil.concatFilePrefixes(BASE_LOCATION, POLARIS_IT_SUBDIR, File.separator);
4948
}
5049
}

integration-tests/src/main/java/org/apache/polaris/service/it/test/PolarisRestCatalogViewS3IntegrationTestBase.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
*/
1919
package org.apache.polaris.service.it.test;
2020

21-
import com.google.common.base.Strings;
21+
import java.io.File;
2222
import java.util.List;
2323
import java.util.Optional;
24-
import org.apache.hadoop.fs.Path;
2524
import org.apache.polaris.core.admin.model.AwsStorageConfigInfo;
2625
import org.apache.polaris.core.admin.model.StorageConfigInfo;
2726
import org.apache.polaris.core.storage.StorageUtil;
@@ -41,12 +40,12 @@ protected StorageConfigInfo getStorageConfigInfo() {
4140
.setStorageType(StorageConfigInfo.StorageTypeEnum.S3)
4241
.setAllowedLocations(
4342
List.of(
44-
StorageUtil.concatFilePrefixes(BASE_LOCATION, POLARIS_IT_SUBDIR, Path.SEPARATOR)))
43+
StorageUtil.concatFilePrefixes(BASE_LOCATION, POLARIS_IT_SUBDIR, File.separator)))
4544
.build();
4645
}
4746

4847
@Override
4948
protected String getCustomMetadataLocationDir() {
50-
return new Path(BASE_LOCATION, POLARIS_IT_CUSTOM_SUBDIR).toString();
49+
return StorageUtil.concatFilePrefixes(BASE_LOCATION, POLARIS_IT_SUBDIR, File.separator);
5150
}
5251
}

0 commit comments

Comments
 (0)