Content-Length: 272220 | pFad | http://github.com/apache/iceberg/pull/8168/commits/9c243b3e022f800b935393d1f8c413ea643667ca

3A GCP: Add prefix and bulk operations to GCSFileIO by bryanck · Pull Request #8168 · apache/iceberg · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCP: Add prefix and bulk operations to GCSFileIO #8168

Merged
merged 12 commits into from
Aug 5, 2023
Prev Previous commit
Next Next commit
rebase
  • Loading branch information
bryanck committed Jul 27, 2023
commit 9c243b3e022f800b935393d1f8c413ea643667ca
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.ByteBuffer;
import java.util.List;
import java.util.Random;
import java.util.stream.StreamSupport;
import org.apache.commons.io.IOUtils;
import org.apache.iceberg.TestHelpers;
import org.apache.iceberg.gcp.GCPProperties;
import org.apache.iceberg.io.FileIO;
import org.apache.iceberg.io.IOUtil;
import org.apache.iceberg.io.InputFile;
import org.apache.iceberg.io.OutputFile;
import org.apache.iceberg.relocated.com.google.common.collect.ImmutableList;
Expand Down Expand Up @@ -83,14 +84,14 @@ public void newInputFile() throws IOException {

OutputFile out = io.newOutputFile(location);
try (OutputStream os = out.createOrOverwrite()) {
IOUtils.write(expected, os);
IOUtil.writeFully(os, ByteBuffer.wrap(expected));
}

assertThat(in.exists()).isTrue();
byte[] actual = new byte[1024 * 1024];

try (InputStream is = in.newStream()) {
IOUtils.readFully(is, actual);
IOUtil.readFully(is, actual, 0, actual.length);
}

assertThat(expected).isEqualTo(actual);
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/apache/iceberg/pull/8168/commits/9c243b3e022f800b935393d1f8c413ea643667ca

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy