Removing Clustered Column Store index resulting in error
Hi Everyone,
I was playing around with Clustered Column Store indexes to see if it would help increase performance of reading data from our DWH. It didn't help so i wanted to revert to the old situation by removing the index.
However, on deploy i get an error message and i'm not sure i'm doing something wrong here.
I basically just created a Clustered Column Store index, deployed deleted it again and deployed. On the last deploy i get this error message (so the problem is in deleting the index somehow):
An error occurred during update table. See exception details for the failing object: Exception occurred during execution of RebuildHeap process. An exception occurred while executing a Transact-SQL statement or batch.. failed for Table 'MDW.FactHistStockManagementData'. This is not a valid data compression setting for a columnstore index. Please choose COLUMNSTORE or COLUMNSTORE_ARCHIVE compression.
I've ran the profiler against the deployment and it seems the error is coming from this statement:
ALTER TABLE LMDW].WFactHistStockManagementData] REBUILD PARTITION = ALL WITH (DATA_COMPRESSION = ROW )
Has anyone encountered this before?
Page 1 / 1
Hi @JogchumSiR
Can you please confirm which version of TimeXtender are you using?
Also can you please share table settings i.e. is it a history table, do you have incremental load enabled, etc?
What storage are you using for your MDW? (Azure SQL db, SQL Server db, Synapse, etc.)
Hi @Christian Hauggaard ,
We are using version 6536.1. The table setting are pretty basic. We are using batch data cleansing (1 mln batch size). Also we are using Row based compression.
Further on, Incremental load is enabled without any deletes. There is no history enabled.
Our MDW is hosted on Azure SQL DB.
Kind regards,
Jogchum
Hi @JogchumSiR
I am unable to replicate the issue you describe. I am using an Azure db for my DW
I have the following table
With the following settings:
I create a clustered columnstore index
I deploy the table and see the following in SSMS
I delete the index
And re-deploy the table, which completes successfully
Do you notice any differences between our setups?
As a workaround, can you please try to delete the index in SSMS and then re-deploy from TimeXtender?
@Christian Hauggaard on the performance tab of the table settings i've also enabled ROW based compression and enabled index compression on the valid table:
I will also try your workaround.
Hi @Christian Hauggaard , The workaround seems to work. The software is executed this statement and succeeded:
ALTER TABLE LMDW].WFactHistInventoryWarehouseCluster] REBUILD PARTITION = ALL WITH (DATA_COMPRESSION = ROW )
After this it recreated the PK index on the table:
I would say with this working, there might be something wrong in the software around Column Store indexing and compression settings. Do you agree?
Hi @JogchumSiR ,
Clustered Column Store Indexes cannot be row compressed; the table structure is then column store compression. You could have a columnstore index combined with a table with row compression. But not a clustered columnstore index with row compression. Clustered indexes essentially define the table storage.
@rory.smith i am aware of the combination not being valid for SQL Server, but it is configurable in TimeXtender though. Maybe you want to have extra non-clustered indexes and enable compression on them. My point being, the software let's you create a non-supported situation.
@JogchumSiR I agree this seems to be a bug, I have passed it on to the product team with reproduction steps
Thanks @Christian Hauggaard and Thanks @Thomas Lind for providing a workaround!