Projet

Général

Profil

0001-engine-get-fact-table-from-configuration-41814.patch

Benjamin Dauvergne, 20 avril 2020 20:17

Télécharger (1,03 ko)

Voir les différences:

Subject: [PATCH 1/5] engine: get fact table from configuration (#41814)

 bijoe/engine.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
bijoe/engine.py
309 309
            return []
310 310
        if not self.__cache:
311 311
            with self.engine.get_cursor() as cursor:
312
                sql = ('select distinct jsonb_object_keys(%s) as a from formdata order by a'
313
                       % self.engine_cube.json_field)
312
                sql = ('select distinct jsonb_object_keys(%s) as a from %s order by a'
313
                       % (self.engine_cube.json_field, self.engine_cube.fact_table))
314 314
                cursor.execute(sql)
315 315
                self.__cache = [row[0] for row in cursor.fetchall()]
316 316
        return self.__cache
317
-