-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Convert_regular_column_of_temporal_table_to_sparse failing #32154
Comments
https://learn.microsoft.com/en-us/sql/relational-databases/tables/changing-the-schema-of-a-system-versioned-temporal-table?view=sql-server-ver16&redirectedfrom=MSDN#important-remarks indicates that sparse columns do have an issue when interacting with temporal tables, and that's why I added the test in the first place. Looks like your SQL Server uses compression (which is supposed to be the default, looking at the link above), but I just checked and what I get on my box (and presumably on CI) is that Compression Type is set to NONE. |
btw, same thing happens for regular tables if you set compression level to ROW or PAGE before we apply the migration. We could consider checking the compression level and removing it if needed before adding (or converting to) sparse column, but maybe that's too much "magic". Thoughts? @bricelam @roji |
…iling On some versions of Sql Server, temporal table's history table is by default setup with compression. If that's the case, we need to disable versioning before adding a sparse column or converting non-sparse column to sparse. Fixes #32154
…iling On some versions of Sql Server, temporal table's history table is by default setup with compression. If that's the case, we need to disable versioning and de-compress the history table before adding a sparse column or converting non-sparse column to sparse. Fixes #32154
…iling On some versions of Sql Server, temporal table's history table is by default setup with compression. If that's the case, we need to disable versioning and de-compress the history table before adding a sparse column or converting non-sparse column to sparse. Fixes #32154
This test fails consistently on my machine with:
The text was updated successfully, but these errors were encountered: