Skip to content

Commit 0444740

Browse files
committed
fix
1 parent 6f8169a commit 0444740

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

paimon-format/src/test/java/org/apache/paimon/format/TextCompressionTest.java

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@
3131
import org.apache.paimon.types.DataTypes;
3232
import org.apache.paimon.types.RowType;
3333

34+
import org.junit.jupiter.api.Disabled;
3435
import org.junit.jupiter.api.Test;
3536
import org.junit.jupiter.api.io.TempDir;
37+
import org.junit.jupiter.params.ParameterizedTest;
38+
import org.junit.jupiter.params.provider.EnumSource;
3639

3740
import java.io.IOException;
3841
import java.util.ArrayList;
@@ -63,28 +66,23 @@ public abstract class TextCompressionTest {
6366
/** Returns the file extension for the format. */
6467
protected abstract String getFormatExtension();
6568

66-
// TODO fix dependencies
67-
// @ParameterizedTest(name = "compression = {0}")
68-
// @EnumSource(TextCompressionType.class)
69-
// void testCompression(TextCompressionType compression) throws IOException {
70-
// testCompressionRoundTrip(
71-
// compression.value(),
72-
// String.format(
73-
// "test_compress.%s.%s",
74-
// getFormatExtension(), compression.fileExtension()));
75-
// }
76-
77-
// TODO fix dependencies
78-
// @ParameterizedTest(name = "compression = {0}")
79-
// @EnumSource(TextCompressionType.class)
80-
// void testCompressionDetectionFromFileName(TextCompressionType type) throws IOException {
81-
// testAutoCompressionDetection(
82-
// "test_auto."
83-
// + getFormatExtension()
84-
// + "."
85-
// + type.fileExtension(),
86-
// type.value());
87-
// }
69+
@Disabled // TODO fix dependencies
70+
@ParameterizedTest(name = "compression = {0}")
71+
@EnumSource(TextCompressionType.class)
72+
void testCompression(TextCompressionType compression) throws IOException {
73+
testCompressionRoundTrip(
74+
compression.value(),
75+
String.format(
76+
"test_compress.%s.%s", getFormatExtension(), compression.fileExtension()));
77+
}
78+
79+
@Disabled // TODO fix dependencies
80+
@ParameterizedTest(name = "compression = {0}")
81+
@EnumSource(TextCompressionType.class)
82+
void testCompressionDetectionFromFileName(TextCompressionType type) throws IOException {
83+
testAutoCompressionDetection(
84+
"test_auto." + getFormatExtension() + "." + type.fileExtension(), type.value());
85+
}
8886

8987
@Test
9088
void testUnsupportedCompressionFormat() throws IOException {

paimon-format/src/test/java/org/apache/paimon/format/json/JsonCompressionTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import org.apache.paimon.format.TextCompressionType;
2525
import org.apache.paimon.options.Options;
2626

27+
import org.junit.jupiter.api.Disabled;
2728
import org.junit.jupiter.api.Test;
2829

2930
import java.io.IOException;
@@ -53,6 +54,7 @@ void testCompressionWithCustomJsonOptions() throws IOException {
5354
testCompressionRoundTripWithOptions(options, fileName);
5455
}
5556

57+
@Disabled // TODO fix dependencies
5658
@Test
5759
void testJsonCompressionWithComplexData() throws IOException {
5860
// Test with complex JSON structures and different compression formats

0 commit comments

Comments
 (0)