The table I am working with has 3 fields:
userId, timestamp, version
I am running the following query:
select userid, MAX(version) as current_version FROM my_table GROUP EACH BY userId;
The response I get is:
"errors": [
{
"reason": "responseTooLarge",
"message": "Response too large to return."
}
The size of the table is 644MB and it has 12,279,432 rows.
I thought GROUP EACH BY
does not have the result size restrictions because it is distributed across multiple nodes. Anyway, What can I do about it?