return no JSONDimension if json_field is not defined
This commit is contained in:
parent
81c37023cc
commit
c1e52f05e1
|
@ -153,6 +153,8 @@ class JSONDimensions(object):
|
|||
|
||||
@property
|
||||
def cache(self):
|
||||
if not self.engine_cube.json_field:
|
||||
return []
|
||||
if not self.__cache:
|
||||
cursor = self.engine.get_cursor()
|
||||
sql = 'select distinct jsonb_object_keys(json_data) as a from formdata order by a'
|
||||
|
|
Loading…
Reference in New Issue