Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit 494a3da

Browse files
author
Sergey Vasilyev
committed
Fix the CaseWhen's "else" rendering
1 parent 6c510f7 commit 494a3da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_diff/queries/ast_classes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class CaseWhen(ExprNode):
302302
def type(self):
303303
then_types = {_expr_type(case.then) for case in self.cases}
304304
if self.else_expr:
305-
then_types |= _expr_type(self.else_expr)
305+
then_types |= {_expr_type(self.else_expr)}
306306
if len(then_types) > 1:
307307
raise QB_TypeError(f"Non-matching types in when: {then_types}")
308308
(t,) = then_types

0 commit comments

Comments
 (0)