Thanks to visit codestin.com
Credit goes to github.com

Skip to content

update-warehouse-faq-datatype #5993

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 4 commits into from
Feb 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/connections/storage/warehouses/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,19 @@ Protocols customers can also use [Transformations](/docs/protocols/transform/) t

## Can I change the data type of a column in the warehouse?

Yes. Data types are set up in your warehouse based on the first value that comes in from a source, but you can request the support team to update the data type by reaching out to [Segment support](https://app.segment.com/workspaces?contact=1){:target="_blank”}. To learn more, check out Segment's [Data Types](/docs/connections/storage/warehouses/schema/#schema-evolution-and-compatibility) documentation.
Yes. Data types are initially set up in your warehouse based on the first value that comes in from a source, but you can request data type changes by reaching out to [Segment support](https://app.segment.com/workspaces?contact=1){:target="_blank”} for assistance.

Keep in mind that Segment only uses [general data types](/docs/connections/storage/warehouses/schema/#schema-evolution-and-compatibility){:target="_blank”} when loading data in your warehouse. Therefore, some of the common scenarios are:
- Changing data type from `timestamp` to `varchar`
- Changing data type from `integer` to `float`
- Changing data type from `boolean` to `varchar`

More granular changes (such as the examples below) wouldn’t normally be handled by the Support team, thus they often need to be made within the warehouse itself:
- Expanding data type `varchar(256)` to `varchar(2048)`
- Updating data type `integer` to `bigint`
- Updating data type `float` to `float8`



## Can the data type definitions in Protocols be enforced in a warehouse schema?

Expand Down