From 1cfc6fcbed50f470286028cc852a59514c92319d Mon Sep 17 00:00:00 2001 From: Matthew McKnight Date: Fri, 8 Sep 2023 11:30:41 -0500 Subject: [PATCH] change expected_stat types to match agate_helper change in dbt-core --- .changes/unreleased/Fixes-20230908-113019.yaml | 6 ++++++ tests/functional/adapter/expected_stats.py | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 .changes/unreleased/Fixes-20230908-113019.yaml diff --git a/.changes/unreleased/Fixes-20230908-113019.yaml b/.changes/unreleased/Fixes-20230908-113019.yaml new file mode 100644 index 000000000..ed5957317 --- /dev/null +++ b/.changes/unreleased/Fixes-20230908-113019.yaml @@ -0,0 +1,6 @@ +kind: Fixes +body: changes expected value types to AnyInteger to take into account changes in core +time: 2023-09-08T11:30:19.77143-05:00 +custom: + Author: McKnight-42 + Issue: "597" diff --git a/tests/functional/adapter/expected_stats.py b/tests/functional/adapter/expected_stats.py index 9e635bdbb..265ae225a 100644 --- a/tests/functional/adapter/expected_stats.py +++ b/tests/functional/adapter/expected_stats.py @@ -1,4 +1,4 @@ -from dbt.tests.util import AnyStringWith, AnyFloat, AnyString +from dbt.tests.util import AnyStringWith, AnyInteger, AnyString, AnyFloat def redshift_stats(): @@ -27,14 +27,14 @@ def redshift_stats(): "max_varchar": { "id": "max_varchar", "label": "Max Varchar", - "value": AnyFloat(), + "value": AnyInteger(), "description": "Size of the largest column that uses a VARCHAR data type.", "include": True, }, "size": { "id": "size", "label": "Approximate Size", - "value": AnyFloat(), + "value": AnyInteger(), "description": "Approximate size of the table, calculated from a count of 1MB blocks", "include": True, },