Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 18, 2024
1 parent b3ac284 commit 61c3274
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
6 changes: 3 additions & 3 deletions great_expectations/expectations/metrics/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,9 +421,9 @@ def get_sqlalchemy_column_metadata( # noqa: C901
column["type"] = column["type"].compile(dialect=execution_engine.dialect)
if dialect_name == GXSqlDialect.SNOWFLAKE:
return [
# TODO: SmartColumn should know the dialect and do lookups based on that
CaseInsensitiveNameDict(column)
for column in columns_copy
# TODO: SmartColumn should know the dialect and do lookups based on that
CaseInsensitiveNameDict(column)
for column in columns_copy
]
return columns_copy
return columns
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,21 +388,15 @@ def test_success_complete_snowflake(
"expectation",
[
pytest.param(
gxe.ExpectColumnValuesToBeInTypeList(
column="CHAR", type_list=["CHAR", "CHAR(1)"]
),
gxe.ExpectColumnValuesToBeInTypeList(column="CHAR", type_list=["CHAR", "CHAR(1)"]),
id="CHAR",
),
pytest.param(
gxe.ExpectColumnValuesToBeInTypeList(
column="TEXT", type_list=["TEXT"]
),
gxe.ExpectColumnValuesToBeInTypeList(column="TEXT", type_list=["TEXT"]),
id="TEXT",
),
pytest.param(
gxe.ExpectColumnValuesToBeInTypeList(
column="INTEGER", type_list=["INTEGER"]
),
gxe.ExpectColumnValuesToBeInTypeList(column="INTEGER", type_list=["INTEGER"]),
id="INTEGER",
),
pytest.param(
Expand All @@ -420,9 +414,7 @@ def test_success_complete_snowflake(
id="TIMESTAMP",
),
pytest.param(
gxe.ExpectColumnValuesToBeInTypeList(
column="DATE", type_list=["DATE"]
),
gxe.ExpectColumnValuesToBeInTypeList(column="DATE", type_list=["DATE"]),
id="DATE",
),
pytest.param(
Expand All @@ -432,9 +424,7 @@ def test_success_complete_snowflake(
id="DOUBLE_PRECISION",
),
pytest.param(
gxe.ExpectColumnValuesToBeInTypeList(
column="BOOLEAN", type_list=["BOOLEAN"]
),
gxe.ExpectColumnValuesToBeInTypeList(column="BOOLEAN", type_list=["BOOLEAN"]),
id="BOOLEAN",
),
pytest.param(
Expand Down Expand Up @@ -495,4 +485,4 @@ def test_success_complete_postgres(
assert isinstance(result_dict, dict)
assert isinstance(result_dict["observed_value"], str)
assert isinstance(expectation.type_list, list)
assert result_dict["observed_value"] in expectation.type_list
assert result_dict["observed_value"] in expectation.type_list

0 comments on commit 61c3274

Please sign in to comment.