From 29ef14ad379f5730ee74c06b6378fc1b85153e1e Mon Sep 17 00:00:00 2001 From: DemoYeti <164791169+DemoYeti@users.noreply.github.com> Date: Wed, 28 Aug 2024 17:21:00 -0400 Subject: [PATCH] fix comments in `BigQueryDataParser.java` --- .../cdap/plugin/gcp/bigquery/util/BigQueryDataParser.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/cdap/plugin/gcp/bigquery/util/BigQueryDataParser.java b/src/main/java/io/cdap/plugin/gcp/bigquery/util/BigQueryDataParser.java index d8f1f8087..037af135e 100644 --- a/src/main/java/io/cdap/plugin/gcp/bigquery/util/BigQueryDataParser.java +++ b/src/main/java/io/cdap/plugin/gcp/bigquery/util/BigQueryDataParser.java @@ -85,12 +85,12 @@ public static StructuredRecord getStructuredRecord(Schema schema, FieldList fiel FieldList subFields = field.getSubFields(); if (attribute == Attribute.REPEATED) { - // Process each field of the array and then add it to the StructuredRecord + // Process each field of the array, then add it to the StructuredRecord List list = new ArrayList<>(); List fieldValueList = fieldValue.getRepeatedValue(); for (FieldValue localValue : fieldValueList) { - // If the field contains multiple fields then we have to process it recursively. + // If the field contains multiple fields, it must be processed recursively. if (localValue.getValue() instanceof FieldValueList) { FieldValueList localFieldValueListNoSchema = localValue.getRecordValue(); FieldValueList localFieldValueList = @@ -105,7 +105,7 @@ public static StructuredRecord getStructuredRecord(Schema schema, FieldList fiel recordBuilder.set(fieldName, list); } else if (attribute == Attribute.RECORD) { - // If the field contains a Record then we need to process each field independently + // If the field contains a Record, each field must be processed independently. FieldValue localValue = fieldValue; Object value; if (localValue.getValue() instanceof FieldValueList) {