c3r-cli-spark/src/main/java/com/amazonaws/c3r/spark/io/schema/TemplateSchemaGenerator.java [169:192]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private JsonArray generateTemplateColumnSchemasFromColumnCount() {
        final var columnSchemaArray = new JsonArray(sourceColumnCount);
        for (int i = 0; i < sourceColumnCount; i++) {
            // Array template entry will go in
            final var entryArray = new JsonArray(1);
            // template entry
            final var templateEntry = new JsonObject();
            templateEntry.addProperty("targetHeader", ColumnHeader.of(i).toString());
            if (sourceColumnTypes.get(i) != ClientDataType.UNKNOWN) {
                templateEntry.addProperty("type", columnTypeOptions);
                templateEntry.add("pad", EXAMPLE_PAD);
                entryArray.add(templateEntry);
            } else if (allowCleartextColumns) {
                templateEntry.addProperty("type", ColumnType.CLEARTEXT.toString());
                entryArray.add(templateEntry);
            } else {
                // If the column type does not support cryptographic computing and cleartext columns are not allowed,
                // then we do not add a template entry to the array, and we warn the user this column has been skipped.
                consoleOutput.println(SchemaGeneratorUtils.unsupportedTypeSkippingColumnWarning(null, i));
            }
            columnSchemaArray.add(entryArray);
        }
        return columnSchemaArray;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



c3r-cli/src/main/java/com/amazonaws/c3r/io/schema/TemplateSchemaGenerator.java [168:191]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private JsonArray generateTemplateColumnSchemasFromColumnCount() {
        final var columnSchemaArray = new JsonArray(sourceColumnCount);
        for (int i = 0; i < sourceColumnCount; i++) {
            // Array template entry will go in
            final var entryArray = new JsonArray(1);
            // template entry
            final var templateEntry = new JsonObject();
            templateEntry.addProperty("targetHeader", ColumnHeader.of(i).toString());
            if (sourceColumnTypes.get(i) != ClientDataType.UNKNOWN) {
                templateEntry.addProperty("type", columnTypeOptions);
                templateEntry.add("pad", EXAMPLE_PAD);
                entryArray.add(templateEntry);
            } else if (allowCleartextColumns) {
                templateEntry.addProperty("type", ColumnType.CLEARTEXT.toString());
                entryArray.add(templateEntry);
            } else {
                // If the column type does not support cryptographic computing and cleartext columns are not allowed,
                // then we do not add a template entry to the array, and we warn the user this column has been skipped.
                consoleOutput.println(SchemaGeneratorUtils.unsupportedTypeSkippingColumnWarning(null, i));
            }
            columnSchemaArray.add(entryArray);
        }
        return columnSchemaArray;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



