Skip to content

Commit

Permalink
Drop improved error message for single value struct field.
Browse files Browse the repository at this point in the history
  • Loading branch information
toregge committed Apr 10, 2024
1 parent 0f0340a commit 6a53177
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,9 +279,6 @@ public static void validateDataType(String schemaName, String fieldName, DataTyp
if (fieldType instanceof ArrayDataType arrayType && arrayType.getNestedType() instanceof StructDataType nestedType) {
failDataType(schemaName, fieldName, "array<" + nestedType.getName() + ">");
}
if (fieldType instanceof StructDataType structType) {
failDataType(schemaName, fieldName, structType.getName());
}
}

/** Converts to the right attribute type from a field datatype */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,6 @@ void bad_array_of_struct_attribute() throws ParseException {
run_bad_struct_or_map_attribute("array<s>");
}

@Test
void bad_struct_attribute() throws ParseException {
run_bad_struct_or_map_attribute("s");
}

private void run_bad_struct_or_map_attribute(String type) throws ParseException {
run_bad_struct_or_map_attribute(type, false, true);
run_bad_struct_or_map_attribute(type, true, false);
Expand Down

0 comments on commit 6a53177

Please sign in to comment.