Skip to content

BigQueryTemplate does not pass information on error reported by BigQuery #4314

@prismec

Description

@prismec

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions