-
Notifications
You must be signed in to change notification settings - Fork 428
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
Updated getIndexInfo() to include Columnstore indexes by using custom query. #2566
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2566 +/- ##
============================================
+ Coverage 51.12% 51.21% +0.08%
+ Complexity 3940 3933 -7
============================================
Files 147 147
Lines 33456 33512 +56
Branches 5604 5612 +8
============================================
+ Hits 17105 17162 +57
+ Misses 13963 13930 -33
- Partials 2388 2420 +32 ☔ View full report in Codecov by Sentry. |
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerDatabaseMetaData.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerDatabaseMetaData.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/sqlserver/jdbc/SQLServerDatabaseMetaData.java
Outdated
Show resolved
Hide resolved
...est/java/com/microsoft/sqlserver/jdbc/databasemetadata/DatabaseMetadataGetIndexInfoTest.java
Outdated
Show resolved
Hide resolved
...est/java/com/microsoft/sqlserver/jdbc/databasemetadata/DatabaseMetadataGetIndexInfoTest.java
Outdated
Show resolved
Hide resolved
...est/java/com/microsoft/sqlserver/jdbc/databasemetadata/DatabaseMetadataGetIndexInfoTest.java
Show resolved
Hide resolved
...est/java/com/microsoft/sqlserver/jdbc/databasemetadata/DatabaseMetadataGetIndexInfoTest.java
Outdated
Show resolved
Hide resolved
...est/java/com/microsoft/sqlserver/jdbc/databasemetadata/DatabaseMetadataGetIndexInfoTest.java
Outdated
Show resolved
Hide resolved
...est/java/com/microsoft/sqlserver/jdbc/databasemetadata/DatabaseMetadataGetIndexInfoTest.java
Outdated
Show resolved
Hide resolved
...est/java/com/microsoft/sqlserver/jdbc/databasemetadata/DatabaseMetadataGetIndexInfoTest.java
Outdated
Show resolved
Hide resolved
...est/java/com/microsoft/sqlserver/jdbc/databasemetadata/DatabaseMetadataGetIndexInfoTest.java
Outdated
Show resolved
Hide resolved
...est/java/com/microsoft/sqlserver/jdbc/databasemetadata/DatabaseMetadataGetIndexInfoTest.java
Show resolved
Hide resolved
Might want to manually test this on Azure DW. I don't think there should be problems, but just as a check. |
* Capture Client Guest OS and architecture in JDBC * Added app name with format Microsoft JDBC - {os}, {platform} - {arch} * Adding log info and getAppNameWithProperties() * Updated the application name to be set dynamically * Added log level as FINE * Added test case to verify application name * Updated the SQLServerDriverPropertyInfo with default name * Added static block for initialization * Added test case for code coverage * Updated app Name
* Driver cuts out the question mark from columns labels (aliases) * added SQLServerPreparedStatement
* Fix OffsetDateTime conversion for pre-Gregorian dates * Formatting changes * Removed unused import
* Handled failure in getApplicationName() * Added test to validate appName using select app_name() query * Updated connect property * Updated connect property to add appname * Fixed checking of APPLICATION_NAME in connect properties * Added test case --------- Co-authored-by: machavan <machavan@microsoft.com>
/azp run public-mssql-jdbc.windows |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run public-mssql-jdbc.linux |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run CI-MacOS |
Azure Pipelines successfully started running 1 pipeline(s). |
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