Skip to content
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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

Ananya2
Copy link
Contributor

@Ananya2 Ananya2 commented Dec 17, 2024

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

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 89.09091% with 6 lines in your changes missing coverage. Please review.

Project coverage is 51.21%. Comparing base (6829848) to head (3f98b61).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
.../com/microsoft/sqlserver/jdbc/SQLServerDriver.java 78.57% 0 Missing and 3 partials ⚠️
...oft/sqlserver/jdbc/SQLServerPreparedStatement.java 57.14% 3 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

@Ananya2 Ananya2 requested a review from lilgreenbird January 7, 2025 09:27
divang
divang previously approved these changes Jan 8, 2025
tkyc
tkyc previously approved these changes Jan 8, 2025
@tkyc
Copy link
Member

tkyc commented Jan 8, 2025

Might want to manually test this on Azure DW. I don't think there should be problems, but just as a check.

muskan124947 and others added 5 commits January 10, 2025 10:56
* 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>
@Ananya2 Ananya2 dismissed stale reviews from tkyc and divang via 3f98b61 January 10, 2025 05:27
@Ananya2
Copy link
Contributor Author

Ananya2 commented Jan 16, 2025

/azp run public-mssql-jdbc.windows

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Ananya2
Copy link
Contributor Author

Ananya2 commented Jan 16, 2025

/azp run public-mssql-jdbc.linux

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@Ananya2
Copy link
Contributor Author

Ananya2 commented Jan 16, 2025

/azp run CI-MacOS

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Under Peer Review
Development

Successfully merging this pull request may close these issues.

DatabaseMetaData getIndexInfo does not include COLUMNSTORE Indexes
7 participants