Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
duttasoumya
Microsoft Employee
Microsoft Employee

Indexing not supported in Fabric datawarehouse?

Following the documentation at, Primary, foreign, and unique keys - Microsoft Fabric | Microsoft Learn

 

The following T-SQL to create an index on my table TestIndex with a field Id  

 

 

DROP TABLE IF EXISTS [dbo].[TestIndex];

CREATE TABLE [dbo].[TestIndex]
(
    [Id] int NOT NULL,
    [Name] varchar(10) NULL
);

ALTER TABLE [dbo].[TestIndex] ADD CONSTRAINT PK_TestIndex PRIMARY KEY NONCLUSTERED (Id) NOT ENFORCED;

 


led to,

duttasoumya_0-1688743537556.png

Well, if creation of indexes is not supported, should it not be included in the set of limitations documented at,

T-SQL surface area - Microsoft Fabric | Microsoft Learn

1 ACCEPTED SOLUTION

Greetings @duttasoumya!  It looks like we have an issue where if you run all the statements you showed at the same time, it will give the error but if you run them one at a time, it works correctly.  I'll track that internally to get it resolved, thank you for finding it!

 

I'll keep track of requests for updating the documentation for possibly adding a note about indexes being a known limitation.  Thank you!

View solution in original post

5 REPLIES 5
mikeburek
Advocate I
Advocate I

As a late follow-up, this appears to work correctly now.

duttasoumya
Microsoft Employee
Microsoft Employee

Thank you @GeethaT-MSFT. I just wanted to underline that the example given above has been taken from the official documentation (first link in the post). Perhaps the documentation in that link itself needs an update, aside from adding the limitation.

Greetings @duttasoumya!  It looks like we have an issue where if you run all the statements you showed at the same time, it will give the error but if you run them one at a time, it works correctly.  I'll track that internally to get it resolved, thank you for finding it!

 

I'll keep track of requests for updating the documentation for possibly adding a note about indexes being a known limitation.  Thank you!

Thanks, @KevinConanMSFT  for looking into this. 

@duttasoumya as Kevin mentioned can you try executing individually and let us know if you have any issues? 

Regards

Geetha

 

GeethaT-MSFT
Community Support
Community Support

Hi @duttasoumya Thanks for posting your question in Microsoft Fabric CommunityThanks for the feedback. and I agree with you, we can add this as a known limitation there too. Currently, we have this on the docs for tables: Tables in data warehousing - Microsoft Fabric | Microsoft Learn

GeethaTMSFT_1-1689118029948.png

 

Regards

Geetha

 

Helpful resources

Announcements
Sept Fabric Carousel

Fabric Monthly Update - September 2024

Check out the September 2024 Fabric update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.