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

SNOW-651560: Fix the metadata issue when extTypeName from the returned json result is empty #1239

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

sfc-gh-jdu
Copy link
Collaborator

@sfc-gh-jdu sfc-gh-jdu commented Aug 25, 2022

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

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

    Fixes SNOW-651560

  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 adding a new telemetry message
    • I am modifying authorization mechanisms
    • I am adding new credentials
    • I am modifying OCSP code
    • I am adding a new dependency
  3. Please describe how your code solves the related issue.

    extTypeName can exist in the returned json result but it can be empty when it's returned from table stored proc. See the jira for more details and the code path. After it's merged, I will update the SP connector as well.

@sfc-gh-jdu sfc-gh-jdu requested a review from a team August 25, 2022 00:22
@codecov-commenter
Copy link

Codecov Report

Merging #1239 (801e0d6) into main (e145e62) will increase coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1239      +/-   ##
==========================================
+ Coverage   81.68%   81.75%   +0.07%     
==========================================
  Files          59       59              
  Lines        8503     8503              
  Branches     1378     1378              
==========================================
+ Hits         6946     6952       +6     
+ Misses       1248     1242       -6     
  Partials      309      309              
Impacted Files Coverage Δ
src/snowflake/connector/cursor.py 95.62% <ø> (-0.18%) ⬇️
src/snowflake/connector/errors.py 89.89% <0.00%> (-0.54%) ⬇️
src/snowflake/connector/network.py 82.84% <0.00%> (+1.67%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@sfc-gh-sfan sfc-gh-sfan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make sure I understand, we will use type if extTypeName is missing or empty, is it correct?

@sfc-gh-jdu
Copy link
Collaborator Author

To make sure I understand, we will use type if extTypeName is missing or empty, is it correct?

Yes

@sfc-gh-jdu sfc-gh-jdu merged commit a384f05 into main Aug 25, 2022
@sfc-gh-jdu sfc-gh-jdu deleted the jdu-SNOW-651560-fix-metadata-extTypeName branch August 25, 2022 22:10
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants