Skip to content

Commit

Permalink
SNOW-983635 Don't use luben.zstd directly
Browse files Browse the repository at this point in the history
Description

Testing
  • Loading branch information
sfc-gh-lthiede committed Dec 22, 2023
1 parent 9db2403 commit 01966a3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.luben</groupId>
<artifactId>zstd-jni</artifactId>
<version>1.5.0-1</version>
</dependency>

<dependency>
<groupId>com.google.code.findbugs</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import java.util.List;
import java.util.Map;

import com.github.luben.zstd.ZstdInputStreamNoFinalizer;
import com.github.luben.zstd.ZstdOutputStreamNoFinalizer;
import net.snowflake.ingest.utils.Constants;
import net.snowflake.ingest.utils.ErrorCode;
import net.snowflake.ingest.utils.SFException;
Expand Down Expand Up @@ -114,12 +112,7 @@ public void writeRow(List<Object> row) {
@Override
public void close() throws IOException {
try {
int test = Math.max(Math.max((int) ZstdOutputStreamNoFinalizer.recommendedCOutSize(), (int) ZstdInputStreamNoFinalizer.recommendedDInSize()), (int) ZstdInputStreamNoFinalizer.recommendedDOutSize());
System.out.println(test);
writer.close();
} catch (java.lang.UnsatisfiedLinkError e) {
System.out.println(e);
throw new IOException(e);
} catch (InterruptedException e) {
throw new IOException(e);
} finally {
Expand Down

0 comments on commit 01966a3

Please sign in to comment.