Amit Singh
05/10/2024, 9:24 AMWITH ACTE AS (Select distinct tt.col1, tt.col2 FROM (Select *, row_number() over(partition by col3 order by col4 DESC) as rnk From A
WHERE A.col4 between '2024-05-01' and '2024-05-02') tt
WHERE tt.rnk=1),
BCTE AS (
Select * From (Select *, row_number() over(partition by col1 order by col2 DESC) as rnk
FROM B
WHERE col3 in (SELECT CONCAT('', col1) FROM ACTE) or
lp_uuid in (SELECT CONCAT('', col2) FROM ACTE)) pu
WHERE pu.rnk=1)
Select * FROM BCTEAmit Singh
05/10/2024, 9:25 AMAmit Singh
05/10/2024, 9:26 AMAmit Singh
05/10/2024, 10:29 AMXiang Fu
ACTE ? Can you also try to extend the query latency for this query? there seems to be a lot of inefficient operations in the queryAmit Singh
05/13/2024, 7:10 AMACTE
Tried extending the query latency but still it is giving same error as above also due to lots of memory consumption happening on the pinot server some of them are getting dead.
cc: @Ashwin Agalcha @Shubham Setia @Ritesh KumarAmit Singh
05/13/2024, 7:11 AMXiang Fu