Skip to content

Commit

Permalink
Temporarily disable schema existence check for object create (#1949) (#…
Browse files Browse the repository at this point in the history
…1950)

* Temporarily disable schema existance check for object create

* skip test
  • Loading branch information
sfc-gh-pczajka authored Dec 12, 2024
1 parent 5ec0612 commit 35792e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/snowflake/cli/api/rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ def determine_url_for_create_query(
raise SchemaNotDefinedException(
"Schema not defined in connection. Please try again with `--schema` flag."
)
if not self._schema_exists(db_name=db, schema_name=schema):
raise SchemaNotExistsException(f"Schema '{schema}' does not exist.")
# temporarily disable this check due to an issue on server side: SNOW-1747450
# if not self._schema_exists(db_name=db, schema_name=schema):
# raise SchemaNotExistsException(f"Schema '{schema}' does not exist.")
if self.get_endpoint_exists(
url := f"{SF_REST_API_URL_PREFIX}/databases/{self.conn.database}/schemas/{self.conn.schema}/{plural_object_type}/"
):
Expand Down
1 change: 1 addition & 0 deletions tests_integration/test_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ def test_create_error_database_not_exist(runner):


@pytest.mark.integration
@pytest.mark.skip(reason="Server-side issue: SNOW-1855040")
def test_create_error_schema_not_exist(runner, test_database):
# schema does not exist
result = runner.invoke_with_connection(
Expand Down

0 comments on commit 35792e9

Please sign in to comment.