Upload$insert_rows
Upload$insert_rows(rows, update_schema=FALSE) → list<insertRows response>
Insert rows into the upload. Can only be called on unreleased uploads of type "stream".
Should be called at most once per second, per upload; for increased performance try batching multiple rows into a single request, up to a limit of 10MB per request.
Parameters:
rows
: data.frame | character
The rows to insert. Either a data.frame (or something that inherits from data.frame; e.g., a tibble), or a character vector that is a valid JSON string for an insertRows payload.
update_schema
: bool, default FALSE
Whether to automatically update the schema as new rows come in, relaxing variable types and adding new variables. If FALSE, an error will be thrown if any of the rows in the insert request would cause a schema update. Note that there is a significant performance overhead to passing update_schema = TRUE
Returns:
Examples
Last updated
Was this helpful?