如何获取单个表的BigQuery存储大小 [英] How to get BigQuery storage size for a single table

查看:79
本文介绍了如何获取单个表的BigQuery存储大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想计算Google Big Query Storage的明智成本,但我不知道如何分别查看每个表的存储空间大小。

I want to calculate table wise cost for Google Big Query Storage, But i don't know how to view size of storage for each table individually.

推荐答案

或者从GUI,你可以使用元数据内部表__TABLES__,例如这会给你GB的大小:

Or from the GUI, you can use the metadata internal table __TABLES__ , for example this will give you the size in GB:

select 
  sum(size_bytes)/pow(10,9) as size
from
  <your_dataset>.__TABLES__
where 
  table_id = '<your_table>'

这篇关于如何获取单个表的BigQuery存储大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆