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 1533042 create error handling fix #1315

Merged
merged 7 commits into from
Jul 15, 2024

Conversation

sfc-gh-pczajka
Copy link
Contributor

@sfc-gh-pczajka sfc-gh-pczajka commented Jul 15, 2024

Pre-review checklist

  • I've confirmed that instructions included in README.md are still correct after my changes in the codebase.
  • I've added or updated automated unit tests to verify correctness of my new code.
  • I've added or updated integration tests to verify correctness of my new code.
  • I've confirmed that my changes are working by executing CLI's commands manually on MacOS.
  • I've confirmed that my changes are working by executing CLI's commands manually on Windows.
  • I've confirmed that my changes are up-to-date with the target branch.
  • I've described my changes in the release notes.
  • I've described my changes in the section below.

Changes description

More detailed error detection while determining CREATE endpoints url

@sfc-gh-pczajka sfc-gh-pczajka requested a review from a team as a code owner July 15, 2024 10:16
RELEASE-NOTES.md Outdated
@@ -32,6 +32,7 @@
* Added support for user stages in stage execute command
* Added support for user stages in stage and git copy commands
* Improved support for quoted identifiers in snowpark commands.
* `snow object create` message returns meaningful error if connection database is not defined.
Copy link
Contributor

Choose a reason for hiding this comment

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

Remember to move it to v2.6.1

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed


raise CannotDetermineCreateURLException(
f"Create operation for type {object_type} is not supported. Try using `sql -q 'CREATE ...'` command."
)
Copy link
Contributor

Choose a reason for hiding this comment

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

This is for later, we should consider whether we need so many requests.

@sfc-gh-pczajka sfc-gh-pczajka enabled auto-merge (squash) July 15, 2024 12:30
@sfc-gh-pczajka sfc-gh-pczajka merged commit ce9c980 into main Jul 15, 2024
16 checks passed
@sfc-gh-pczajka sfc-gh-pczajka deleted the SNOW-1533042-create-error-handling-fix branch July 15, 2024 12:46
sfc-gh-pczajka added a commit that referenced this pull request Jul 15, 2024
* Fix error messages

* Fix error handling in rest_api

* Add tests

* refactor

* update release notes

* fix comment

* move release note to v2.6.1:
sfc-gh-sichen pushed a commit that referenced this pull request Oct 17, 2024
* Fix error messages

* Fix error handling in rest_api

* Add tests

* refactor

* update release notes

* fix comment

* move release note to v2.6.1:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants