Skip to content

Commit 0089f84

Browse files
committed
Updates
1 parent 5101a5d commit 0089f84

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • sdks/java/io/delta/src/test/java/org/apache/beam/sdk/io/delta

sdks/java/io/delta/src/test/java/org/apache/beam/sdk/io/delta/DeltaIOIT.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void setup() throws Exception {
9191

9292
String tempLocation = readPipeline.getOptions().getTempLocation();
9393
if (tempLocation != null && tempLocation.startsWith("gs://")) {
94-
org.apache.beam.sdk.extensions.gcp.util.gcs.GcsPath gcsPath = org.apache.beam.sdk.extensions.gcp.util.gcs.GcsPath
94+
org.apache.beam.sdk.extensions.gcp.util.gcsfs.GcsPath gcsPath = org.apache.beam.sdk.extensions.gcp.util.gcsfs.GcsPath
9595
.fromUri(tempLocation);
9696
bucket = gcsPath.getBucket();
9797
repoPrefix = gcsPath.getObject() + "/delta_io_it/" + testName.getMethodName() + "-" + salt;
@@ -158,7 +158,7 @@ public void teardown() {
158158
}
159159
LOG.info("Cleaning up Delta Lake repository at {}", repoPath);
160160
try {
161-
Iterable<Blob> blobs =
161+
Iterable<Blob> blobs =
162162
storage.list(bucket, Storage.BlobListOption.prefix(repoPrefix)).getValues();
163163
blobs.forEach(b -> storage.delete(b.getBlobId()));
164164
} catch (Exception e) {
@@ -172,7 +172,9 @@ public void testReadDeltaLakeTable() {
172172
hadoopConfig.put("fs.gs.impl", "com.google.cloud.hadoop.fs.gcs.GoogleHadoopFileSystem");
173173
hadoopConfig.put(
174174
"fs.AbstractFileSystem.gs.impl", "com.google.cloud.hadoop.fs.gcs.GoogleHadoopFS");
175-
String project = readPipeline.getOptions().as(org.apache.beam.sdk.extensions.gcp.options.GcpOptions.class)
175+
String project = readPipeline
176+
.getOptions()
177+
.as(org.apache.beam.sdk.extensions.gcp.options.GcpOptions.class)
176178
.getProject();
177179
if (project != null) {
178180
hadoopConfig.put("fs.gs.project.id", project);

0 commit comments

Comments
 (0)