cube icon indicating copy to clipboard operation
cube copied to clipboard

How to query postgresql json fields

Open devopsprosiva opened this issue 6 years ago • 1 comments

Hi @paveltiunov ,

I have a requirement to map a query in postgresql with json fields similar to the screenshot below. Is there a way to do this directly in cube-js? Right now the only work around that worked for me was to create a view for each query with json filter in postgresql and then map that view in cube-js schema.

image

devopsprosiva avatar Jan 05 '20 21:01 devopsprosiva

@devopsprosiva Yep. Please refer to https://stackoverflow.com/questions/59327256/how-to-deal-with-jsonb-objects-in-postgres-databases-in-cube-js

paveltiunov avatar Jan 06 '20 13:01 paveltiunov