Fixed #29172 -- Fixed crash with Window expression in a subquery.

This commit is contained in:
Tomáš Ehrlich 2018-03-01 08:55:05 +01:00 committed by Tim Graham
parent ba4a986240
commit fa352626c2
3 changed files with 20 additions and 2 deletions

View file

@ -315,8 +315,10 @@ class BaseExpression:
def relabeled_clone(self, change_map):
clone = self.copy()
clone.set_source_expressions(
[e.relabeled_clone(change_map) for e in self.get_source_expressions()])
clone.set_source_expressions([
e.relabeled_clone(change_map) if e is not None else None
for e in self.get_source_expressions()
])
return clone
def copy(self):