Skip to content

Commit

Permalink
these are going to need more testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tkaemming committed Oct 16, 2024
1 parent aeaa7be commit 51b1d87
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions posthog/hogql/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1519,6 +1519,10 @@ 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.ConstantType):
return node.type.nullable
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 51b1d87

Please sign in to comment.