Skip to content

Commit

Permalink
add to _is_nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
thmsobrmlr committed Aug 7, 2024
1 parent ad70016 commit 14c84f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions posthog/hogql/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1250,6 +1250,8 @@ def _is_nullable(self, node: ast.Expr) -> bool:
return node.value is None
elif isinstance(node.type, ast.PropertyType):
return True
elif isinstance(node.type, ast.CallType):
return node.type.return_type.nullable
elif isinstance(node.type, ast.FieldType):
return node.type.is_nullable(self.context)
elif isinstance(node, ast.Alias):
Expand Down

0 comments on commit 14c84f5

Please sign in to comment.