Skip to content

Commit

Permalink
using a constant variable instead of literal
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiqiang Ding authored and Yiqiang Ding committed Oct 6, 2023
1 parent 3bdc28a commit 1e33c67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ private static TypeDescription getOrcSchemaForComplexUnionType(Type type, boolea
TypeDescription childOrcType = orcField.type.getChildren().get(i);
boolean typeProjectedInIcebergSchema = false;
for (Types.NestedField nestedField : nestedFields) {
if (!nestedField.name().equals("tag") &&
if (!nestedField.name().equals(ICEBERG_UNION_TAG_FIELD_NAME) &&
Integer.parseInt(nestedField.name().substring(5)) == i) {
// child type is projected in Iceberg schema
TypeDescription childType = buildOrcProjection(nestedField.fieldId(), nestedField.type(),
Expand Down

0 comments on commit 1e33c67

Please sign in to comment.