---
title: Numeric Data Type Aliases
page-cloud: true
latest-operator-version: v26.2.6
latest-console-tag: v3.14.0
latest-connect-version: 4.118.0
latest-redpanda-tag: v26.2.7
docname: sql/sql-data-types/numeric-type/numeric-data-type-aliases
page-component-name: cloud-data-platform
page-version: master
page-component-version: master
page-component-title: Cloud
page-relative-src-path: sql/sql-data-types/numeric-type/numeric-data-type-aliases.adoc
page-edit-url: https://github.com/redpanda-data/cloud-docs/edit/main/modules/reference/pages/sql/sql-data-types/numeric-type/numeric-data-type-aliases.adoc
description: Aliases for the primary numeric data types in Redpanda SQL, mapped to their primary types during processing.
page-topic-type: reference
page-git-created-date: "2026-05-26"
page-git-modified-date: "2026-10-16"
page-generated-content: none
---

# Numeric Data Type Aliases

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [cloud-data-platform-full.txt](https://docs.redpanda.com/cloud-data-platform-full.txt)

<!-- Source: https://docs.redpanda.com/cloud-data-platform/reference/sql/sql-data-types/numeric-type/numeric-data-type-aliases.md -->

Redpanda SQL accepts aliases that you can use interchangeably with the primary data types. During processing, Redpanda SQL maps these aliases to their corresponding primary data types.

The following sections describe the numeric data type aliases:

## `integer` alias

The `integer` alias is an alternative name for the `int` data type. For example, the following two queries are functionally the same:

```sql
CREATE TABLE ExampleTable (
    id INTEGER
);

-- Functionally the same as the previous table
CREATE TABLE AnotherTable (
    id INT,
);
```

> 📝 **NOTE**
>
> Even though you specify the `integer` alias in DDL, Redpanda SQL stores and treats the data as `int`.

## `long` alias

The `long` alias is often used to represent larger integer values. For example:

```sql
CREATE TABLE LargeValues (
    value LONG
);

-- Functionally the same as the previous table
CREATE TABLE LargeValuesEquivalent (
    value BIGINT
);
```

> 📝 **NOTE**
>
> Even though you specify the `long` alias in DDL, Redpanda SQL stores and treats the data as `bigint`.

## `float` alias

The `float` alias corresponds to the `double precision` data type, as in PostgreSQL. For example:

```sql
CREATE TABLE FloatExample (
    price FLOAT
);

-- Functionally the same as the previous table
CREATE TABLE FloatEquivalent (
    price DOUBLE PRECISION
);
```

> 📝 **NOTE**
>
> Even though you specify the `float` alias in DDL, Redpanda SQL stores and treats the data as `double precision`. For a 32-bit floating-point number, use `real` or `float4`.

## `double` alias

The `double` alias defines `double precision` floating-point numbers. For example:

```sql
CREATE TABLE DoubleExample (
    measurement DOUBLE
);

-- Functionally the same as the previous table
CREATE TABLE DoubleEquivalent (
    measurement DOUBLE PRECISION
);
```

> 📝 **NOTE**
>
> Even though you specify the `double` alias in DDL, Redpanda SQL stores and treats the data as `double precision`.

## `decimal` alias

The `decimal` alias is an alternative name for the `numeric` data type. `decimal(p, s)` and `numeric(p, s)` are the same type. For example, the following two casts are functionally the same:

```sql
SELECT '12.50'::DECIMAL(5, 2);

-- Functionally the same as the previous cast
SELECT '12.50'::NUMERIC(5, 2);
```

See [`numeric` type](https://docs.redpanda.com/cloud-data-platform/reference/sql/sql-data-types/numeric-type/numeric/#numeric-type).