Apache Iceberg · Schema

DecimalTypeValue

Decimal type values are serialized as strings. Decimals with a positive scale serialize as numeric plain text, while decimals with a negative scale use scientific notation and the exponent will be equal to the negated scale. For instance, a decimal with a positive scale is '123.4500', with zero scale is '2', and with a negative scale is '2E+20'

ACIDAnalyticsApacheData LakeLakehouseOpen SourceTable Format
View JSON Schema on GitHub

JSON Schema

rest-catalog-open-api-decimal-type-value-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-iceberg/refs/heads/main/json-schema/rest-catalog-open-api-decimal-type-value-schema.json",
  "title": "DecimalTypeValue",
  "description": "Decimal type values are serialized as strings. Decimals with a positive scale serialize as numeric plain text, while decimals with a negative scale use scientific notation and the exponent will be equal to the negated scale. For instance, a decimal with a positive scale is '123.4500', with zero scale is '2', and with a negative scale is '2E+20'",
  "type": "string",
  "example": "123.4500"
}