Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
If schema is inferred from RowBasedSchemaProvider when SQL transformer is used it also needs to be registered.
Current way only works if SchemaProvider has a valid target schema. Is one wants to use schema from SQL transformation, the result of RowBasedSchemaProvider.getTargetSchema needs to be passed into something like:
private void setupWriteClient(SchemaProvider schemaProvider) { LOG.info("Setting up Hoodie Write Client"); registerAvroSchemas(schemaProvider); HoodieWriteConfig hoodieCfg = getHoodieClientConfig(schemaProvider); writeClient = new HoodieWriteClient<>(jssc, hoodieCfg, true); onInitializingHoodieWriteClient.apply(writeClient); }
Existent method will not work as it is checking for:
if ((null != schemaProvider) && (null == writeClient)) {
and writeClient is already configured.
Attachments
Issue Links
- is depended upon by
-
HUDI-901 Bug Bash 0.6.0 Tracking Ticket
- Resolved
- links to