-
Notifications
You must be signed in to change notification settings - Fork 392
MySQL pipe: data type mapping #3641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b9d8f2e
add mysql datatype doc
Amogh-Bharadwaj eb95834
Update docs/integrations/data-ingestion/clickpipes/mysql/datatypes.md
Amogh-Bharadwaj 161e912
Update docs/integrations/data-ingestion/clickpipes/mysql/datatypes.md
Amogh-Bharadwaj 466e84e
Update docs/integrations/data-ingestion/clickpipes/mysql/datatypes.md
Amogh-Bharadwaj af1a463
Update docs/integrations/data-ingestion/clickpipes/mysql/datatypes.md
Amogh-Bharadwaj 1017ceb
Update docs/integrations/data-ingestion/clickpipes/mysql/datatypes.md
Amogh-Bharadwaj f05a862
change float, double note
Amogh-Bharadwaj 923e5fe
change to differ
Amogh-Bharadwaj 171ef30
add to dictionary
Amogh-Bharadwaj fd4514c
Update docs/integrations/data-ingestion/clickpipes/mysql/datatypes.md
Amogh-Bharadwaj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
docs/integrations/data-ingestion/clickpipes/mysql/datatypes.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| --- | ||
| title: 'ClickPipes for MySQL: Supported data types' | ||
| slug: /integrations/clickpipes/mysql/datatypes | ||
| description: 'Page describing MySQL ClickPipe datatype mapping from MySQL to ClickHouse' | ||
| --- | ||
|
|
||
| Here is the supported data-type mapping for the MySQL ClickPipe: | ||
|
|
||
| | MySQL Type | ClickHouse type | Notes | | ||
| | -------------------------------------------------------------------------- | ------------------------------------------ | -------------------------------------------------------------------------------------- | | ||
| | Enum | LowCardinality(String) | | | ||
| | Set | String | | | ||
| | Decimal | Decimal | | | ||
| | TinyInt | Int8 | Supports unsigned. | | ||
| | SmallInt | Int16 | Supports unsigned. | | ||
| | MediumInt, Int | Int32 | Supports unsigned. | | ||
| | BigInt | Int64 | Supports unsigned. | | ||
| | Year | Int16 | | | ||
| | TinyText, Text, MediumText, LongText | String | | | ||
| | TinyBlob, Blob, MediumBlob, LongBlob | String | | | ||
| | Char, Varchar | String | | | ||
| | Binary, VarBinary | String | | | ||
| | TinyInt(1) | Bool | | | ||
| | JSON | String | MySQL only; MariaDB `json` is just an alias for `text` with a constraint. | | ||
| | Geometry & Geometry Types | String | WKT (Well-Known Text). WKT may suffer from small precision loss. | | ||
| | Vector | Array(Float32) | MySQL only; MariaDB is adding support soon. | | ||
| | Float | Float32 | Precision on ClickHouse may differ from MySQL from during initial load due to text protocols. | | ||
| | Double | Float64 | Precision on ClickHouse may differ from MySQL from during initial load due to text protocols. | | ||
| | Date | Date32 | | | ||
| | Time | DateTime64(6) | The date portion is Unix epoch. | | ||
| | Datetime, Timestamp | DateTime64(6) | | | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.