Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate query_id in redshift_query_attribution_vw #2

Open
hienlt21293 opened this issue Feb 23, 2024 · 0 comments
Open

Duplicate query_id in redshift_query_attribution_vw #2

hienlt21293 opened this issue Feb 23, 2024 · 0 comments

Comments

@hienlt21293
Copy link

I applied these views to my cluster, and I notice that there are rows with same query_id in the view redshift_query_attribution_vw

List of duplicate query_id:

SELECT query_id, COUNT(*)
FROM redshift_query_attribution_vw 
GROUP BY query_id
HAVING COUNT(*) > 1;

Results
image


Check details of a duplicated query_id

SELECT query_id, db_user_id, redshift_query_cost
FROM redshift_query_attribution_vw 
where query_id = 164726352;
image

Why are there these duplicate values?
Does it mean the cost of the query equals the sum of all redshift_query_cost of that query_id in the view?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant