From ace0e2d083ff2f3c095275b8e3dfdb3b7cfed7a4 Mon Sep 17 00:00:00 2001 From: Ted Kaemming <65315+tkaemming@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:14:01 -0700 Subject: [PATCH] discriminate none --- posthog/hogql/test/test_resolver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/hogql/test/test_resolver.py b/posthog/hogql/test/test_resolver.py index 3b4c4e4801be6..bcb459939fc4a 100644 --- a/posthog/hogql/test/test_resolver.py +++ b/posthog/hogql/test/test_resolver.py @@ -595,7 +595,7 @@ def test_interval_type_arithmetic_and_datetime_comparison(self): """) node = cast(ast.SelectQuery, resolve_types(node, self.context, dialect="clickhouse")) - assert isinstance(node.where.type, ast.CallType) + assert node.where is not None and isinstance(node.where.type, ast.CallType) for arg_type in node.where.type.arg_types: assert arg_type == ast.BooleanType(nullable=False)