Title
#general
James

James

05/18/2022, 12:26 PM
mysql> SELECT -> uid, -> retention(date = '2018-08-06', date = '2018-08-07', date = '2018-08-08') AS r -> FROM -> retention_test -> WHERE -> uid = 999 -> GROUP BY -> uid; ERROR 2013 (HY000): Lost connection to MySQL server during query mysql> [2] + 41456 segmentation fault RUST_BACKTRACE=1 ${DATABEND_HOME}/target/release/databend-query -c > 2>&1
12:27 PM
was following the guide: https://databend.rs/doc/reference/functions/aggregate-functions/aggregate-retention I inserted an addition record: insert into retention_test values ('2018-08-07', 999);
12:27 PM
Then query will cause core dump: SELECT uid, retention(date = '2018-08-06', date = '2018-08-07', date = '2018-08-08') AS r FROM retention_test WHERE uid = 999 GROUP BY uid
River wubx

River wubx

05/18/2022, 12:33 PM
please support : select verion();
James

James

05/18/2022, 12:34 PM
8.0.26-v0.7.48-nightly-c280435-simd(rust-1.61.0-nightly-2022-05-16T11:08:26.801609Z)
River wubx

River wubx

05/18/2022, 12:34 PM
Got ,Let me check it.
bohu

bohu

05/18/2022, 12:36 PM
You can try the latest version, (we have fixed some issues on Array yesterday):https://github.com/datafuselabs/databend/releases/tag/v0.7.51-nightly
River wubx

River wubx

05/18/2022, 12:40 PM
v0.7.51 work fine.
bohu

bohu

05/18/2022, 12:50 PM
Oops, v0.7.51 is not working too, we will check the root cause and fix it, thanks for your feedback 😃
James

James

05/19/2022, 1:08 AM
thanks for the quick fix
1:09 AM
just out of curiosity, seems no unit test are added for this fix?
James

James

05/20/2022, 12:39 AM
I mean unit test, test a particular function(e.g. a Java method), to make sure the function work as expected, do we write this kind of test in databend?