JSONObject record = new JSONObject();
record.put("id", String.valueOf(j));
record.put("name", "example");
record.put("_CHANGE_TYPE", "UPSERT");
Stack trace
Saw unknown field error during proto message conversin within error messages{0=The source object has fields unknown to BigQuery: root._CHANGE_TYPE., 1=The source object has fields unknown to BigQuery: root
Environment details
Steps to reproduce
_CHANGE_TYPE
value on your JSONRecordCode example
Full code example: https://cloud.google.com/bigquery/docs/write-api-streaming
Stack trace
External references such as API reference guides
Any additional information below
Using the normal StreamWriter with a proto payload works for this.