lokeshj1703 commented on code in PR #8574:
URL: https://github.com/apache/hudi/pull/8574#discussion_r1191050118
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/transform/ChainedTransformer.java:
##########
@@ -59,11 +65,15 @@ public ChainedTransformer(List<Transformer>
transformersList) {
* Creates a chained transformer using the input transformer class names.
Refer {@link HoodieDeltaStreamer.Config#transformerClassNames}
* for more information on how the transformers can be configured.
*
- * @param configuredTransformers List of configured transformer class names.
- * @param ignore Added for avoiding two methods with same erasure. Ignored.
+ * @param sourceSchemaOpt Source Schema
+ * @param configuredTransformers List of configured transformer
class names.
+ * @param enableSchemaValidation If true, schema is validated for
the transformed data against expected schema.
+ * Expected schema is provided by
{@link Transformer#transformedSchema}
*/
- public ChainedTransformer(List<String> configuredTransformers, int...
ignore) {
+ public ChainedTransformer(List<String> configuredTransformers,
Option<Schema> sourceSchemaOpt, boolean enableSchemaValidation) {
this.transformers = new ArrayList<>(configuredTransformers.size());
+ this.enableSchemaValidation = enableSchemaValidation;
+ this.sourceSchemaOpt = sourceSchemaOpt;
Review Comment:
This is handled in the schema validation check
`validateAndGetTransformedSchema`. The first incomingSchema is the
sourceSchemaOpt.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]