-
Notifications
You must be signed in to change notification settings - Fork 426
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
DatabaseMetaData getIndexInfo does not include COLUMNSTORE Indexes #2546
Labels
Under Investigation
Used for issues under investigation
Comments
The driver calls sp_statistics procedure to get the index info and this procedure's result does not include the COLUMNSTORE indexes
We will check why it does not return this info and get back on this. Meanwhile, as a workaround, a query similar to following on sys.indexes returning this info can be used:
|
machavan
added
the
Backlog
The topic in question has been recognized and added to development backlog
label
Nov 25, 2024
Jeffery-Wasty
added
Under Investigation
Used for issues under investigation
and removed
Backlog
The topic in question has been recognized and added to development backlog
labels
Nov 29, 2024
Ananya2
added a commit
that referenced
this issue
Dec 13, 2024
… query Replaced the use of the sp_statistics stored procedure with a custom query to retrieve index information as the sp_statistics procedure did not return Columnstore indexes, so a query using sys.indexes was implemented as a workaround. This new query ensures that all index types (Clustered, NonClustered, Columnstore) are included in the result set. Github Issue: #2546
This was referenced Dec 13, 2024
Ananya2
added
Under Review
Used for pull requests under review
and removed
Under Review
Used for pull requests under review
labels
Dec 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Driver version
12.8.1.0
SQL Server version
Microsoft SQL Server 2022 (RTM-GDR) (KB5046861) - 16.0.1135.2 (X64)
Oct 18 2024 15:31:58
Copyright (C) 2022 Microsoft Corporation
Developer Edition (64-bit) on Windows 10 Pro 10.0 (Build 22631: ) (Hypervisor)
Client Operating System
Windows (but really any)
JAVA/JVM version
java version "21.0.1" 2023-10-17 LTS
Table schema
WideWorldImporters.Sales.InvoiceLines
Problem description
DatabaseMetaData getIndexInfo does not include COLUMNSTORE Indexes
Expected behavior
That all indexes that re on the table are included in the resultset
Actual behavior
Output of what you actually see.
Error message/stack trace
None
Any other details that can be helpful
Nope
JDBC trace logs
None
The text was updated successfully, but these errors were encountered: