Closed dmm-l-mediehus closed 8 months ago
I see that in your PR you have removed the ORDER clause. This is fundamental for COLUMNSTORE INDEX definition, so this isn't the correct solution.
I see that in your PR you have removed the ORDER clause. This is fundamental for COLUMNSTORE INDEX definition, so this isn't the correct solution.
@marcominerva The ORDER clause for CREATE COLUMNSTORE INDEX is only supported on SQL Server 2022 and newer.
I'm running SQL Server 2017 and removing the ORDER clause works for me. Perhaps you could do a SELECT @@version
check before hand?
I note on the README you haven't mentioned which SQL Server version is a minimum requirement. If you don't support 2017 you should at least mention what minimum version is required.
@mamift @marcominerva , even if order clause is very important regarding performance. I updated the PR from @dmm-l-mediehus to check SQL server version before adding this clause to the tables creation.
In that way, this should work for all.
Hey, I just came back to try your package after a while (from Azure AI). I switched like this:
And ran the program. It runs fine, but when I start using it, it comes with:
Stacktrace displays your method:
at KernelMemory.MemoryStorage.SqlServer.SqlServerMemory.CreateIndexAsync(String index, Int32 vectorSize, CancellationToken cancellationToken)
My code:
Edit: I tried downgrading nuget from 1.3.1 to 1.3.0, still the same issue. Then I tried downgrading nuget from 1.3.0 to 1.1.4 and the issue disappeared.