Slackbot
09/01/2022, 7:45 AMNavis Ryu
09/01/2022, 8:42 AMselect count(distinct item, year, location) from tableAshikhar
09/01/2022, 8:48 AMAbhishek Agarwal
09/01/2022, 9:12 AMSELECT COUNT(DISTINCT ARRAY[item, year, location]) from tableAAbhishek Agarwal
09/01/2022, 9:13 AMshikhar
09/01/2022, 9:30 AMNavis Ryu
09/01/2022, 9:39 AMAbhishek Agarwal
09/01/2022, 10:43 AMBuiltinApproxCountDistinctSqlAggregatorAbhishek Agarwal
09/01/2022, 11:16 AMAbhishek Agarwal
09/01/2022, 3:15 PMAbhishek Agarwal
09/01/2022, 3:15 PMGian Merlino
09/01/2022, 8:32 PMAPPROX_COUNT_DISTINCT_DS_HLL(item || year || location) or get fancy with separators APPROX_COUNT_DISTINCT_DS_HLL(item || ':' || year || ':' || location)
It's not as fast as the native option (it has to actually compute the concatted string) but it would workshikhar
09/02/2022, 8:34 AM