Hi Vertica team, I have requirement to get element count based on two column uniqueness. Here, for example, if element is equal in both fields, i.e. 1=1 then count for 1 is just 1. Here is the result I'm getting in Spark query which is correct but it uses explode and array.
Result:
{"count":2,"element":1}
{"count":2,"element":3}
{"count":4,"element":2}
col1 col2
1 2
1 1
2 2
2 3
3 2
Please help, I'm using version: "Vertica Analytic Database v9.3.1-0".