Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TypeField SizeDefault ValueDescription
Int810 1-byte signed integer
Int161, 20 2-byte signed integer, but may occupy less space due to compression mechanism described below

Int32

1, 2, 40 4-byte signed integer, but may occupy less space due to compression mechanism described below
Int641, 2, 4, 80 8-byte signed integer, but may occupy less space due to compression mechanism described below
Float40.0 4-byte floating-point number
Double4, 80.0 8-byte floating-point number, but may occupy less space due to compression mechanism described below
Numbervariable0 Variable-length integer
Decimalvariable0 Variable-length fixed-point number, the scale is determined by the schema though it is stored with the number
UUID1600000000-0000-0000-0000-000000000000UUID
Stringvariableempty stringAn utf-8 encoded string
Binaryvariableempty binaryVariable-length arbitrary binary data
Bitmaskvariableempty bit-stringVariable-length binary data representing a bit-string
Date3

Jan 1, 1 BC  (1 BC immediately precedes

1 AD in the Gregorian calendar)

A timezone-free date (a year, month, day)
Time4, 5, 600:00:00.000000 A timezone-free time (hour, minute, second, microseconds)
DateTime7, 8, 9Jan 1, 1 BC, 00:00:00.000000 A timezone-free datetime encoded as (date, time)
Timestamp8, 12Jan 1, 1970, 00:00:00.000000 Number of microseconds since Jan 1, 1970 00:00:00.000000 (with no timezone)
Duration8, 120  (PT0S)See below
Period3, 6, 120  (P0D)See below
Boolean1false A boolean value (either true  of false  )

Integer Representation

All integer values are stored in the little-endian byte order.

...