Skip to content

Commit

Permalink
[HUDI-6222] ParquetSchemaConverter shoud always convert the Map key t…
Browse files Browse the repository at this point in the history
…ype as not nullable (#8728)
  • Loading branch information
danny0405 authored and yihua committed May 17, 2023
1 parent d800630 commit ecf3f36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ private static Type convertToParquetType(
.addField(
Types
.repeatedGroup()
.addField(convertToParquetType("key", keyType, repetition))
.addField(convertToParquetType("key", keyType, Type.Repetition.REQUIRED))
.addField(convertToParquetType("value", valueType, repetition))
.named("key_value"))
.named(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void testConvertComplexTypes() {
+ " }\n"
+ " optional group f_map (MAP) {\n"
+ " repeated group key_value {\n"
+ " optional int32 key;\n"
+ " required int32 key;\n"
+ " optional binary value (STRING);\n"
+ " }\n"
+ " }\n"
Expand Down

0 comments on commit ecf3f36

Please sign in to comment.