Skip to content

Commit

Permalink
Fix style check
Browse files Browse the repository at this point in the history
  • Loading branch information
lnbest0707-uber committed Jan 7, 2025
1 parent 8173a02 commit d87beaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ public class SchemaConformingTransformerTest {

private static TableConfig createDefaultBasicTableConfig() {
IngestionConfig ingestionConfig = new IngestionConfig();
SchemaConformingTransformerConfig SchemaConformingTransformerConfig =
SchemaConformingTransformerConfig schemaConformingTransformerConfig =
new SchemaConformingTransformerConfig(true, INDEXABLE_EXTRAS_FIELD_NAME, true, UNINDEXABLE_EXTRAS_FIELD_NAME,
UNINDEXABLE_FIELD_SUFFIX, null, null, null, null, null, null, false, null, null, null, null, null, null,
null, null, null, null);
ingestionConfig.setSchemaConformingTransformerConfig(SchemaConformingTransformerConfig);
ingestionConfig.setSchemaConformingTransformerConfig(schemaConformingTransformerConfig);
return new TableConfigBuilder(TableType.OFFLINE).setTableName("testTable").setIngestionConfig(ingestionConfig)
.build();
}
Expand All @@ -120,14 +120,14 @@ private static TableConfig createDefaultTableConfig(String indexableExtrasField,
String mergedTextIndexField, boolean useAnonymousDotInFieldNames, boolean optimizeCaseInsensitiveSearch,
Boolean reverseTextIndexKeyValueOrder) {
IngestionConfig ingestionConfig = new IngestionConfig();
SchemaConformingTransformerConfig SchemaConformingTransformerConfig =
SchemaConformingTransformerConfig schemaConformingTransformerConfig =
new SchemaConformingTransformerConfig(indexableExtrasField != null, indexableExtrasField,
unindexableExtrasField != null, unindexableExtrasField, unindexableFieldSuffix, fieldPathsToDrop,
fieldPathsToPreserve, fieldPathsToPreserveWithIndex, null, columnNameToJsonKeyPathMap,
mergedTextIndexField, useAnonymousDotInFieldNames, optimizeCaseInsensitiveSearch,
reverseTextIndexKeyValueOrder, null, null, null,
null, null, JSON_KEY_VALUE_SEPARATOR, MERGED_TEXT_INDEX_BOD_ANCHOR, MERGED_TEXT_INDEX_EOD_ANCHOR);
ingestionConfig.setSchemaConformingTransformerConfig(SchemaConformingTransformerConfig);
ingestionConfig.setSchemaConformingTransformerConfig(schemaConformingTransformerConfig);
return new TableConfigBuilder(TableType.OFFLINE).setTableName("testTable").setIngestionConfig(ingestionConfig)
.build();
}
Expand Down Expand Up @@ -971,9 +971,9 @@ private void testTransform(String indexableExtrasField, String unindexableExtras
private GenericRow transformRow(TableConfig tableConfig, Schema schema, String inputRecordJSONString) {
Map<String, Object> inputRecordMap = jsonStringToMap(inputRecordJSONString);
GenericRow inputRecord = createRowFromMap(inputRecordMap);
SchemaConformingTransformer SchemaConformingTransformer =
SchemaConformingTransformer schemaConformingTransformer =
new SchemaConformingTransformer(tableConfig, schema);
return SchemaConformingTransformer.transform(inputRecord);
return schemaConformingTransformer.transform(inputRecord);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private void setSchemaConformingTransformerV2Config(JsonNode schemaConformingTra
// Map _schemaConformingTransformerV2Config JSON into SchemaConformingTransformerConfig
if (schemaConformingTransformerV2Config != null && _schemaConformingTransformerConfig == null) {
ObjectMapper objectMapper = new ObjectMapper();
this._schemaConformingTransformerConfig =
_schemaConformingTransformerConfig =
objectMapper.convertValue(schemaConformingTransformerV2Config, SchemaConformingTransformerConfig.class);
}
}
Expand Down

0 comments on commit d87beaf

Please sign in to comment.