From a17b7298ff1faa56ec0153f7cb549e7b8ebaed5a Mon Sep 17 00:00:00 2001 From: Tim Poterba Date: Wed, 15 May 2019 13:56:25 -0400 Subject: [PATCH] [hail] Fix quadratic flattening --- hail/python/hail/table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hail/python/hail/table.py b/hail/python/hail/table.py index 407d47ae192..2baf4b22f26 100644 --- a/hail/python/hail/table.py +++ b/hail/python/hail/table.py @@ -2531,7 +2531,7 @@ def flatten(self) -> 'Table': """ # unkey but preserve order t = self.order_by(*self.key) - t = t.select(**t.row.flatten()) + t = Table(TableMapRows(t._tir, t.row.flatten()._ir)) return t @typecheck_method(exprs=oneof(str, Expression, Ascending, Descending))