Can someone help me on group by multiple columns in crate?
For ex.
SELECT COUNT(1), x, y from table GROUP BY x,y
Thanks in Advance.
Your grouping statement seems good (you should use count(*) though, CrateDB opimizes for that specifically, count(1) will be slower), but the CircuitBreakerException and the low amount of memory stated there indicates a memory misconfiguration.
Can you set
CRATE_MIN_MEM=16g
CRATE_MAX_MEM=16g
CRATE_HEAP_SIZE=16g
What operating system are you working on? CRATE_HEAP_SIZE
should automatically set CRATE_MIN_MEM
and CRATE_MAX_MEM
, but there might be a problem with precedence...
Cheers, Claus
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.