title: Insert data into BigQuery table
body: <p>Basically my code looks like official example at <a href="https://cloud.google.com/bigquery/streaming-data-into-bigquery" rel="noreferrer">https://cloud.google.com/bigquery/streaming-data-into-bigquery</a>  </p>
  
  <p>My code:</p>
  
  <pre><code>TableRow data = new TableRow();
  data.set("type", eventType);
  data.set("timestamp", new Date());
  
  TableDataInsertAllRequest.Rows row = new TableDataInsertAllRequest.Rows();
  row.setInsertId(System.currentTimeMillis());
  row.setJson(data);
  request = new TableDataInsertAllRequest();
  request.setRows(Arrays.asList(row));
  
  TableDataInsertAllResponse response = bigquery.tabledata().insertAll(projectId, datasetId, tableId, request).execute();
  for (TableDataInsertAllResponse.InsertErrors err: response.getInsertErrors()) {
      for (ErrorProto ep: err.getErrors()) {
          log.error(ep.getReason() + " : " + ep.getMessage() + " at " + ep.getLocation());
      }
  }
  </code></pre>
  
  <p>But I getting error:</p>
  
  <pre><code>invalid : JSON map specified for non-record field at null
  </code></pre>
  
  <p>Seems that I've missed something, but have no idea what's wrong with my code. I have two fields, a <code>String</code> and <code>Date</code>, and error message doesn't make any sense to me. </p>
  
  <p>How to insert data in BigQuery table?</p>