3131import org .apache .arrow .vector .types .pojo .FieldType ;
3232import org .apache .arrow .vector .types .pojo .Schema ;
3333import org .apache .datafusion .protobuf .CsvReadOptionsProto ;
34- import org .apache .datafusion .protobuf .FileCompressionType ;
3534import org .junit .jupiter .api .Test ;
3635
3736import com .google .protobuf .InvalidProtocolBufferException ;
@@ -47,7 +46,8 @@ void defaultsRoundTripThroughProto() throws InvalidProtocolBufferException {
4746 assertEquals ((int ) '"' , p .getQuote ());
4847 assertEquals (".csv" , p .getFileExtension ());
4948 assertEquals (
50- FileCompressionType .FILE_COMPRESSION_TYPE_UNCOMPRESSED , p .getFileCompressionType ());
49+ org .apache .datafusion .protobuf .FileCompressionType .FILE_COMPRESSION_TYPE_UNCOMPRESSED ,
50+ p .getFileCompressionType ());
5151
5252 assertFalse (p .hasTerminator ());
5353 assertFalse (p .hasEscape ());
@@ -69,7 +69,7 @@ void fullyConfiguredRoundTripsThroughProto() throws InvalidProtocolBufferExcepti
6969 .newlinesInValues (true )
7070 .schemaInferMaxRecords (10L )
7171 .fileExtension (".tsv" )
72- .fileCompressionType (CsvReadOptions . FileCompressionType .GZIP );
72+ .fileCompressionType (FileCompressionType .GZIP );
7373
7474 CsvReadOptionsProto p = CsvReadOptionsProto .parseFrom (opts .toBytes ());
7575
@@ -82,7 +82,9 @@ void fullyConfiguredRoundTripsThroughProto() throws InvalidProtocolBufferExcepti
8282 assertTrue (p .getNewlinesInValues ());
8383 assertEquals (10L , p .getSchemaInferMaxRecords ());
8484 assertEquals (".tsv" , p .getFileExtension ());
85- assertEquals (FileCompressionType .FILE_COMPRESSION_TYPE_GZIP , p .getFileCompressionType ());
85+ assertEquals (
86+ org .apache .datafusion .protobuf .FileCompressionType .FILE_COMPRESSION_TYPE_GZIP ,
87+ p .getFileCompressionType ());
8688 }
8789
8890 @ Test
@@ -96,7 +98,7 @@ void schemaIsHeldByReferenceAndNotInProto() {
9698
9799 @ Test
98100 void allCompressionTypesMapThroughProto () throws InvalidProtocolBufferException {
99- for (CsvReadOptions . FileCompressionType t : CsvReadOptions . FileCompressionType .values ()) {
101+ for (FileCompressionType t : FileCompressionType .values ()) {
100102 CsvReadOptionsProto p =
101103 CsvReadOptionsProto .parseFrom (new CsvReadOptions ().fileCompressionType (t ).toBytes ());
102104 assertEquals (
0 commit comments