Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrebnov authored Oct 17, 2024
1 parent 03a7927 commit cf4a74a
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions spiceaidocs/docs/components/data-accelerators/postgres/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,28 +85,28 @@ datasets:

The table below lists the supported [Apache Arrow data types](https://arrow.apache.org/rust/arrow/datatypes/enum.DataType.html) and their mappings to [PostgreSQL types](https://www.postgresql.org/docs/current/datatype.html) when stored

| Arrow Type | sea_query ColumnType | PostgreSQL Type |
| ------------------------------ | -------------------------- | ---------------------------- |
| Int8 | TinyInteger | smallint |
| Int16 | SmallInteger | smallint |
| Int32 | Integer | integer |
| Int64 | BigInteger | bigint |
| UInt8 | TinyUnsigned | smallint |
| UInt16 | SmallUnsigned | smallint |
| UInt32 | Unsigned | bigint |
| UInt64 | BigUnsigned | numeric |
| Decimal128 / Decimal256 | Decimal | decimal |
| Float32 | Float | real |
| Float64 | Double | double precision |
| Utf8 / LargeUtf8 | Text | text |
| Boolean | Boolean | bool |
| Binary / LargeBinary | VarBinary | bytea |
| FixedSizeBinary | Binary | bytea |
| Timestamp (no Timezone) | Timestamp | timestamp without time zone |
| Timestamp (with Timezone) | TimestampWithTimeZone | timestamp with time zone |
| Date32 / Date64 | Date | date |
| Time32 / Time64 | Time | time |
| Interval | Interval | interval |
| Duration | BigInteger | bigint |
| List / LargeList / FixedSizeList | Array | array |
| Struct | N/A | Composite (Custom type) |
| Arrow Type | sea_query ColumnType | PostgreSQL Type |
| -------------------------------------- | ----------------------- | ----------------------------- |
| `Int8` | `TinyInteger` | `smallint` |
| `Int16` | `SmallInteger` | `smallint` |
| `Int32` | `Integer` | `integer` |
| `Int64` | `BigInteger` | `bigint` |
| `UInt8` | `TinyUnsigned` | `smallint` |
| `UInt16` | `SmallUnsigned` | `smallint` |
| `UInt32` | `Unsigned` | `bigint` |
| `UInt64` | `BigUnsigned` | `numeric` |
| `Decimal128` / `Decimal256` | `Decimal` | `decimal` |
| `Float32` | `Float` | `real` |
| `Float64` | `Double` | `double precision` |
| `Utf8 / LargeUtf8` | `Text` | `text` |
| `Boolean` | `Boolean` | `bool` |
| `Binary / LargeBinary` | `VarBinary` | `bytea` |
| `FixedSizeBinary` | `Binary` | `bytea` |
| `Timestamp` (no Timezone) | `Timestamp` | `timestamp` without time zone |
| `Timestamp` (with Timezone) | `TimestampWithTimeZone` | `timestamp` with time zone |
| `Date32` / `Date64` | `Date` | `date` |
| `Time32` / `Time64` | `Time` | `time` |
| `Interval` | `Interval` | `interval` |
| `Duration` | `BigInteger` | `bigint` |
| `List` / `LargeList` / `FixedSizeList` | `Array` | `array` |
| `Struct` | `N/A` | `Composite` (Custom type) |

0 comments on commit cf4a74a

Please sign in to comment.