Open subham611 opened 2 years ago
protected InsertAllRequest createInsertAllRequest(PartitionedTableId tableId,
Collection<InsertAllRequest.RowToInsert> rows) {
return InsertAllRequest.newBuilder(tableId.getFullTableId(), rows)
.setIgnoreUnknownValues(false)
.setSkipInvalidRows(false)
.build();
}
here setIgnoreUnknownValues is marked as false. Can we make it true or create variable which can be set be user?
I have a BQ table with field {"id":"string", "amount":"long"}. I am passing kafka record as
{"id":"1", "amount":1, "extraField":"someField"}
and this results in following error:My connector config is as below:
Is there any way to ignore this additional field in kafka record instead of generating error?