Skip to content

Commit

Permalink
discriminate none
Browse files Browse the repository at this point in the history
  • Loading branch information
tkaemming committed Oct 16, 2024
1 parent 4eaa5d4 commit ace0e2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/hogql/test/test_resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ace0e2d

Please sign in to comment.