Wednesday, May 29, 2019

Hive - DataTypes


Hive data types are classified into two types :-

Primitive data types

Complex data types

In this blog post , we will look into the basic understanding of the primitive data types in Hive.

The different types of primitive data types that are supported by Hive are following :-

Integers
  • TINYINT1 byte integer
  • SMALLINT2 byte integer
  • INT4 byte integer
  • BIGINT8 byte integer
  • Boolean type
  • BOOLEANTRUE/FALSE
  • Floating point numbvbers
  • FLOATsingle precision
  • DOUBLEDouble precision
  • Fixed point numbers
  • DECIMALa fixed point value of user defined scale and precision
  • String types
  • STRINGsequence of characters in a specified character set (maximum size is 2 GB)
  • VARCHARsequence of characters in a specified character set with a maximum length
  • CHARsequence of characters in a specified character set with a defined length
  • Date and time types
  • TIMESTAMP — A date and time without a timezone ("LocalDateTime" semantics)
  • TIMESTAMP WITH LOCAL TIME ZONE  A point in time measured down to nanoseconds ("Instant" semantics)
  • DATEa date
  • Binary types
  • BINARYa sequence of bytes

No comments:

Post a Comment

Hadoop - What is a Job in Hadoop ?

In the field of computer science , a job just means a piece of program and the same rule applies to the Hadoop ecosystem as wel...