hive 有哪些数据类型

  • tinyint 1byte有符号整数
  • smalint 2byte有符号整数
  • int 4byte有符号整数
  • bigint 8byte有符号整数
  • boolean 
  • float 单精度浮点数
  • double 双精度浮点数
  • string 字符串
  • timestamp 整数浮点数或者字符串
  • binary 字节数组
  • struct      struct street:string,city:string {"street":"mozijie","city":"cd"}
  • map     map<string,float> {"s1":110.4,"s2":50.1}
  • array      array ["emp1","emp2","emp3"]
标签: 浮点数、符号、street、city、整数、面试
  • 回复
隐藏