Affects Version/s: None
Fix Version/s: None
Many functions and operators in Drill need to handle decimal types. This may mean two formats; an expanded format for use during processing, and a compact format for efficient representation on disk.
Postgres' compact (on-disk) format for the decimal types NumericShort and NumericLong generally fit into a 64 bits:
The expanded (in-memory) format in Postgres is defined in numeric.c as follows:
Additional notes and links to related published papers are in the aforementioned source file.