Skip to content

Commit 29ef14a

Browse files
glitched-w0rlditsankit-google
authored andcommitted
fix comments in BigQueryDataParser.java
1 parent f157898 commit 29ef14a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/io/cdap/plugin/gcp/bigquery/util/BigQueryDataParser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ public static StructuredRecord getStructuredRecord(Schema schema, FieldList fiel
8585
FieldList subFields = field.getSubFields();
8686

8787
if (attribute == Attribute.REPEATED) {
88-
// Process each field of the array and then add it to the StructuredRecord
88+
// Process each field of the array, then add it to the StructuredRecord
8989
List<Object> list = new ArrayList<>();
9090
List<FieldValue> fieldValueList = fieldValue.getRepeatedValue();
9191

9292
for (FieldValue localValue : fieldValueList) {
93-
// If the field contains multiple fields then we have to process it recursively.
93+
// If the field contains multiple fields, it must be processed recursively.
9494
if (localValue.getValue() instanceof FieldValueList) {
9595
FieldValueList localFieldValueListNoSchema = localValue.getRecordValue();
9696
FieldValueList localFieldValueList =
@@ -105,7 +105,7 @@ public static StructuredRecord getStructuredRecord(Schema schema, FieldList fiel
105105
recordBuilder.set(fieldName, list);
106106

107107
} else if (attribute == Attribute.RECORD) {
108-
// If the field contains a Record then we need to process each field independently
108+
// If the field contains a Record, each field must be processed independently.
109109
FieldValue localValue = fieldValue;
110110
Object value;
111111
if (localValue.getValue() instanceof FieldValueList) {

0 commit comments

Comments
 (0)