Skip to content
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

Feat: increase default type precision in redshift/mssql view workaround #2791

Merged
merged 7 commits into from
Jul 2, 2024

Conversation

treysp
Copy link
Contributor

@treysp treysp commented Jun 18, 2024

Redshift and MSSQL use the VarcharSizeWorkaroundMixin to infer the size of a varchar or other "max" column when it cannot be resolved from model code.

Data may be truncated if it is inferred to the default length (256 in Redshift, 1 in MSSQL) and that was not intended by the user, so this PR increases the length to "max" if a column with the default length is detected.

@treysp treysp requested a review from izeigerman June 18, 2024 22:29
@treysp treysp changed the title Feat: increase default type precision in redshift/mssql view workaround WIP Feat: increase default type precision in redshift/mssql view workaround Jun 18, 2024
@treysp treysp force-pushed the trey/schema-diff-precision branch 2 times, most recently from 8138a6a to 71d76af Compare June 20, 2024 19:36
Base automatically changed from trey/schema-diff-precision to main June 20, 2024 20:21
@treysp treysp force-pushed the trey/varchar-workaround-max branch from 9fcc19f to 074c1a9 Compare June 20, 2024 20:44
@treysp treysp marked this pull request as ready for review June 20, 2024 20:45
@treysp treysp changed the title WIP Feat: increase default type precision in redshift/mssql view workaround Feat: increase default type precision in redshift/mssql view workaround Jun 20, 2024
@treysp treysp force-pushed the trey/varchar-workaround-max branch from 45a20f2 to 658ed8b Compare June 21, 2024 14:12
@treysp treysp force-pushed the trey/varchar-workaround-max branch from 658ed8b to b719b06 Compare June 24, 2024 14:52
@treysp treysp force-pushed the trey/varchar-workaround-max branch from b719b06 to 26baf63 Compare July 2, 2024 14:15
@treysp treysp force-pushed the trey/varchar-workaround-max branch from 26baf63 to b941952 Compare July 2, 2024 22:07
@treysp treysp force-pushed the trey/varchar-workaround-max branch from b941952 to 8724e73 Compare July 2, 2024 22:08
@treysp treysp merged commit e9ffadb into main Jul 2, 2024
15 checks passed
@treysp treysp deleted the trey/varchar-workaround-max branch July 2, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants