Open dataders opened 3 years ago
@swanderz this implementation is neat! could I work on this issue or is someone already working on it?
@davidclarance all you! I did a version of this for a soon to be open-source adapter, so reach out if you have any questions.
Looks intresting : ) But SQL Server have:
INCLUDE (col1, col2)
ROW
and PAGE
compression for row-store and COLUMNSTORE_ARCHIVE
for columnstoreCOMPRESSION_DELAY
option for columnstoreONLINE = ON
WHERE col1 = 'abc'
UNIQUE
) for row-store indexes (clustered and non-clustered)Thus, it requires logic more complicated than the PostgreSQL implementation.
@semcha great point, especially since Synapse has it's own set of indexes. However, there's nothing I think that couldn't be described in a key-value dictionary, right?
Hi @swanderz!
Do I understand correctly that we need to implement this macro for SQL Server and name it sqlserver__get_create_index_sql
?
https://github.com/dbt-labs/dbt-core/pull/3106/files#diff-49fbdf0ee41b3d9ec139a881dfed1e9196c47ba014f946421f636bbf57703a6c
Hi @swanderz! Do I understand correctly that we need to implement this macro for SQL Server and name it
sqlserver__get_create_index_sql
? https://github.com/dbt-labs/dbt-core/pull/3106/files#diff-49fbdf0ee41b3d9ec139a881dfed1e9196c47ba014f946421f636bbf57703a6c
yep! additionally we're need a SQLServerIndexConfig
for the index definition json. For another example check out dbt-firebolt's FireboltIndexConfig
Working on that issue here: https://github.com/semcha/dbt-sqlserver/commits/new-indexes
copy the implementation introduced for dbt-postgres in https://github.com/dbt-labs/dbt/pull/3106/