Files

35 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Приведение типов pandas.DataFrame to SQL DB types
Confluence page ID: 312523967
URL: https://sdlc.go.rshbank.ru/pages/viewpage.action?pageId=312523967
> Копия из Confluence от 1 декабря 2026 года. При извлечении могли потеряться форматирование, иллюстрации и части примеров. Перед применением команд, настроек и версий сверяйся с оригиналом.
> В видимых таблицах могли сместиться строки и ячейки.
| PANDAS | HIVE |
POSTGRE
| GREENPLUM | ORACLE | MSSQL
| float64 | double | double | double | BINARY_DOUBLE | float
| float32 | double | real | real | BINARY_FLOAT | real
| float16 | float | float | float | FLOAT | float
| int8 | smallint | smallint | smallint | NUMBER(3) | smallint
| int16 | smallint | smallint | smallint | NUMBER(5) | smallint
| int32 | int | int | int | NUMBER(10) | int
| int64 | bigint | bigint | bigint | NUMBER(19) | bigint
| bool | boolean | boolean | boolean | NUMBER(1) | bit
| object | string | text | text | VARCHAR2(4000) | varchar(4000)
| str | string | text | text | VARCHAR2(4000) | varchar(4000)
| datetime | timestamp | timestamp | timestamp | DATE | datetime