-
Notifications
You must be signed in to change notification settings - Fork 171
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-957349: Make some API/classes needed in stored procs public #1570
SNOW-957349: Make some API/classes needed in stored procs public #1570
Conversation
@sfc-gh-smirzaei are we going to document this public types for any customers to use or just for internal purpose only? If it is only for internal purpose, please comment to propagate that message like "internal use only". Also check style merge gate failed so please run "mvn com.spotify.fmt:fmt-maven-plugin:format". This will format the code as needed. |
@sfc-gh-smirzaei Please add issue id to the PR name and/or commit message |
We need this for internal use, but nothing is going to prevent these to be used publicly, so does it stillactually make sense to add "internal use only"? In general considering our workaround
I'm making this change for internal use in stored procs, but I assume nothing prevents public use-cases, so does it still make sense to add "internal use only" for something that is visible and accessible publicly? Also thank you for the pointer for the formatting issue. |
As our source code is public, if we intended to use for internal purpose then better to tag that way, so if someone use and asking for support, we can say that please don't use or use it as per your own risk. Unless you think it will be useful for community to use this method. So it's more to protect from support side. We have seen that if public method use as intended it works but if many people start using it as non-intended purpose, we will be busy to fix and support it. |
I see, good point. I'll add those comments. |
@sfc-gh-igarish the requested comment is added, please take a look once you get a chance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It will as part of this PR. We have JDBC-PC jobs run as part of each PR. So if all tests are running fine as github action, we are good. Monitor this github action check: "continuous-integration/jenkins/pr-merge" It shouldn't fail. |
SonarQube Quality Gate |
Overview
SNOW-957349
External contributors - please answer these questions before submitting a pull request. Thanks!
Please answer these questions before submitting your pull requests. Thanks!
What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes #NNNN
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
As part of changes we made for enabling async child job in JVM stored procs, we needed to access some classes/APIs from the public library that are not public. Hence we had to create util methods in
net/snowflake/client
package (see this PR ...braries/jdbc-stored-proc/src/main/java/net/snowflake/client/core/StoredProcCoreUtils.java). This is a follow up change to make those classes/APIs public.Can someone please point me to the precommit jenkins job that I need to run to test this?
Pre-review checklist