HIVE 第一章 数据类型

hive数据:

struct(name:string,age:int)

struct('dirk','36')

{"street":"1 Michigan Ave.","city":"Chicago","state":"IL","zip":60600}

map<String,float>

map('dirk','36','kedde','38')

{"Federal Taxes":0.2,"State Taxes":0.05,"Insurance":0.1}

array<string>

array('dirk','kedde')

["Mary Smith","Todd Jones"]

       null为特殊的数据类型,表示unknown data,可以是数据丢失,数据错误等

相关推荐