engine: add missing parenthesis around ->> operator (#38932)
This commit is contained in:
parent
16b60621d4
commit
126ddfa812
|
@ -353,7 +353,7 @@ class EngineCube(object):
|
|||
name=name,
|
||||
table=(
|
||||
'(SELECT DISTINCT %s.%s->>\'%s\' AS value FROM %s '
|
||||
'WHERE %s.%s->>\'%s\' IS NOT NULL ORDER BY value)' % (
|
||||
'WHERE (%s.%s->>\'%s\') IS NOT NULL ORDER BY value)' % (
|
||||
self.fact_table, self.json_field, json_key, self.fact_table,
|
||||
self.fact_table, self.json_field, json_key
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue