Skip to content

Commit 3ef0747

Browse files
Temporarily skip schema existence check (#2310)
* Temporarily skip schema existence check * Update src/snowflake/cli/api/rest_api.py * skip schema existance test * Update tests_integration/test_object.py Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com> --------- Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
1 parent 38e1dd7 commit 3ef0747

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/snowflake/cli/api/rest_api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,9 @@ def determine_url_for_create_query(
155155
raise SchemaNotDefinedException(
156156
"Schema not defined in connection. Please try again with `--schema` flag."
157157
)
158-
if not self._schema_exists(db_name=db, schema_name=schema):
159-
raise SchemaNotExistsException(f"Schema '{schema}' does not exist.")
158+
# temporarily skip schema existence check due to server-side issue (SNOW-2110515)
159+
# if not self._schema_exists(db_name=db, schema_name=schema):
160+
# raise SchemaNotExistsException(f"Schema '{schema}' does not exist.")
160161
if self.get_endpoint_exists(
161162
url := f"{SF_REST_API_URL_PREFIX}/databases/{self.conn.database}/schemas/{self.conn.schema}/{plural_object_type}/"
162163
):

tests_integration/test_object.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ def test_create_error_database_not_exist(runner):
312312
assert "Database 'THIS_DB_DOES_NOT_EXIST' does not exist." in result.output
313313

314314

315+
@pytest.mark.skip(reason="SNOW-2110515")
315316
@pytest.mark.integration
316317
def test_create_error_schema_not_exist(runner, test_database):
317318
# schema does not exist

0 commit comments

Comments
 (0)