snowflake-jdbc icon indicating copy to clipboard operation
snowflake-jdbc copied to clipboard

Return an empty resultset for getProcedures() when connected with a reader account

Open SimbaGithub opened this issue 2 years ago • 2 comments

Overview from Snowflake support:

The customer is connecting to the Snowflake reader account via JDBC driver using their tool (name: Rhapsody). This tool performs schema discovery and calls the getProcedures() function when it establishes connectivity but since the Snowflake reader account doesn’t support it, it gets the error: “Operation not supported in Snowflake reader account”. Since this is failing the schema discovery process is getting interrupted.

SNOW-XXXXX

External contributors - please answer these questions before submitting a pull request. Thanks!

Please answer these questions before submitting your pull requests. Thanks!

  1. What GitHub issue is this PR adressing? Make sure that there is an accompanying issue to your PR.

    Fixes #NNNN

  2. Fill out the following pre-review checklist:

    • [ ] I am adding a new automated test(s) to verify correctness of my new code
    • [ ] I am adding new logging messages
    • [ ] I am modyfying authorization mechanisms
    • [ ] I am adding new credentials
    • [ ] I am modyfying OCSP code
    • [ ] I am adding a new dependency
  3. Please describe how your code solves the related issue.

This change will return an empty result set instead of throwing an exception when calling getProcedures() with a reader account.

Pre-review checklist

  • [ ] This change has passed precommit
  • [ ] I have reviewed code coverage report for my PR in (Sonarqube)

SimbaGithub avatar Apr 14 '22 22:04 SimbaGithub

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubemergegate[bot] avatar Apr 21 '22 02:04 sonarqubemergegate[bot]

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubemergegate[bot] avatar Jul 22 '22 21:07 sonarqubemergegate[bot]

SonarQube Quality Gate

Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubemergegate[bot] avatar Sep 07 '22 23:09 sonarqubemergegate[bot]