Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google bigquery BigQuery类型中有多少字节_Google Bigquery - Fatal编程技术网

Google bigquery BigQuery类型中有多少字节

Google bigquery BigQuery类型中有多少字节,google-bigquery,Google Bigquery,以下类型在BigQuery中占用多少字节: 时间戳 日期时间 日期 我的猜测是,日期可以存储在2个字节中,时间戳可能是8,但我不确定这一点,页面上也没有提到它。BigQuery数据类型的大小如下: 任何数据类型的空值都计算为0字节 重复的列存储为数组,并计算其大小 基于值的数量。例如,整数列(INT64) 重复(数组)并包含4个条目的 作为32个字节(4个条目x 8个字节) 有关更多详细信息,请参见文档部分阵列如何?:)我觉得很内疚,只是从文档中复制粘贴:o(通常这不是我要回答的问题类型:o

以下类型在BigQuery中占用多少字节:

  • 时间戳
  • 日期时间
  • 日期

我的猜测是,日期可以存储在2个字节中,时间戳可能是8,但我不确定这一点,页面上也没有提到它。

BigQuery数据类型的大小如下:

任何数据类型的空值都计算为0字节

重复的列存储为数组,并计算其大小 基于值的数量。例如,整数列(INT64) 重复(数组)并包含4个条目的 作为32个字节(4个条目x 8个字节)


有关更多详细信息,请参见文档部分

阵列如何?:)我觉得很内疚,只是从文档中复制粘贴:o(通常这不是我要回答的问题类型:o)@mikhailberlyan你知道为什么日期是8字节吗?这似乎太过分了,除非有人要输入类似20193884949484年1月1日这样的日期?
Data type     Size
INT64/INTEGER 8 bytes
FLOAT64/FLOAT 8 bytes
NUMERIC       16 bytes
BOOL/BOOLEAN  1 byte
STRING        2 bytes + the UTF-8 encoded string size
BYTES         2 bytes + the number of bytes in the value
DATE          8 bytes
DATETIME      8 bytes
TIME          8 bytes
TIMESTAMP     8 bytes
STRUCT/RECORD 0 bytes + the size of the contained fields
GEOGRAPHY     16 bytes + 24 bytes * the number of vertices in the geography type (you can verify the number of vertices using the ST_NumPoints function)