2016-11-28 53 views
1

我正在使用bigquery streaming api(java)来插入数据,并且意识到表格行有1MB的大小限制,但是有没有人知道更多关于这个限制的信息,比如这个1MB是如何计算的? (我猜它不应该是TableRow对象的大小)。谢谢!如何计算bigquery行大小?

回答

3

数据大小根据每种数据类型的大小计算。

Data type Size 
STRING  2 bytes + the UTF-8 encoded string size 
INTEGER  8 bytes 
FLOAT  8 bytes 
BOOLEAN  1 byte 
TIMESTAMP 8 bytes 
RECORD  0 bytes + the size of the contained fields 

看到https://cloud.google.com/bigquery/pricing#datafor详情