简体   繁体   English

Redshift Spectrum扫描查询的数据大小

[英]Size of Data Scanned by Redshift Spectrum for a query

I am querying S3 via Redshift Spectrum. 我正在通过Redshift Spectrum查询S3。 I would like to know the size of data scanned for a given query. 我想知道为给定查询扫描的数据大小。

Athena provides it in its UI whereas I don't find a direct way to find the same in Spectrum 雅典娜(Athena)在其UI中提供了它,但我找不到在Spectrum中找到相同内容的直接方法

Is there are way to find the same? 有没有办法找到相同的?

Yes, select * from SVL_S3QUERY_SUMMARY 是的, select * from SVL_S3QUERY_SUMMARY

It's described more here: https://docs.aws.amazon.com/redshift/latest/dg/r_SVL_S3QUERY_SUMMARY.html 此处有更多描述: https : //docs.aws.amazon.com/redshift/latest/dg/r_SVL_S3QUERY_SUMMARY.html

You probably want to group the results by query or xid to get the summary scanned amount. 您可能希望按queryxid将结果分组,以获取摘要扫描量。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM