For a double
data type it is stated in the docs, that it is consuming exactly 8 bytes, but for decimal
, there is no such clear statement. In SQL Server - as comparison - it is stated, that decimal takes between 5 - 17 bytes depending on the chosen precision. see here.
How much space is decimal consuming in spark?