Skip to content

Commit 03edbf9

Browse files
authored
minor: Cleanup some tests
1 parent 6ac9b29 commit 03edbf9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

parquet-hadoop/src/test/java/org/apache/parquet/hadoop/TestParquetFileWriter.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ public class TestParquetFileWriter {
132132

133133
private static final Logger LOG = LoggerFactory.getLogger(TestParquetFileWriter.class);
134134

135-
private static final MessageType SCHEMA = MessageTypeParser.parseMessageType("" + "message m {"
135+
private static final MessageType SCHEMA = MessageTypeParser.parseMessageType("message m {"
136136
+ " required group a {"
137137
+ " required binary b;"
138138
+ " }"
@@ -156,8 +156,6 @@ public class TestParquetFileWriter {
156156
Types.required(PrimitiveTypeName.BINARY).named("test_binary"))
157157
.build();
158158

159-
private String writeSchema;
160-
161159
@Rule
162160
public final TemporaryFolder temp = new TemporaryFolder();
163161

@@ -1032,7 +1030,7 @@ public void testWriteReadStatisticsAllNulls() throws Exception {
10321030
File testFile = temp.newFile();
10331031
testFile.delete();
10341032

1035-
writeSchema = "message example {\n" + "required binary content (UTF8);\n" + "}";
1033+
String writeSchema = "message example {\n" + "required binary content (UTF8);\n" + "}";
10361034

10371035
Path path = new Path(testFile.toURI());
10381036

@@ -1041,7 +1039,7 @@ public void testWriteReadStatisticsAllNulls() throws Exception {
10411039
configuration.setBoolean("parquet.strings.signed-min-max.enabled", true);
10421040
GroupWriteSupport.setSchema(schema, configuration);
10431041

1044-
// close any filesystems to ensure that the the FS used by the writer picks up the configuration
1042+
// close any filesystems to ensure that the FS used by the writer picks up the configuration
10451043
FileSystem.closeAll();
10461044
ParquetWriter<Group> writer = new ParquetWriter<Group>(path, configuration, new GroupWriteSupport());
10471045

0 commit comments

Comments
 (0)