When using BigQueryTemplate.writeDataToTable with e.g. Json that is missing a value for a required column, the only information that is passed to the caller via a com.google.cloud.spring.bigquery.core.BigQueryException is the message: "Error while reading data, error message: JSON table encountered too many errors, giving up. Rows: 1; errors: 1. Please look into the errors[] collection for more details.". The referenced errors collection is, however, not accessible anymore as the exception is not passed through by the BigQueryTemplate (e.g. here or here).
As a caller, I need access to the actual errors, as otherwise I'm having a hard time finding the actual error in my JSON file.
When using
BigQueryTemplate.writeDataToTablewith e.g. Json that is missing a value for a required column, the only information that is passed to the caller via acom.google.cloud.spring.bigquery.core.BigQueryExceptionis the message: "Error while reading data, error message: JSON table encountered too many errors, giving up. Rows: 1; errors: 1. Please look into the errors[] collection for more details.". The referenced errors collection is, however, not accessible anymore as the exception is not passed through by theBigQueryTemplate(e.g. here or here).As a caller, I need access to the actual errors, as otherwise I'm having a hard time finding the actual error in my JSON file.