DataBrewery / cubes

[NOT MAINTAINED] Light-weight Python OLAP framework for multi-dimensional data analysis
http://cubes.databrewery.org
Other
1.49k stars 314 forks source link

Define cube key #491

Open leonorsilva opened 4 years ago

leonorsilva commented 4 years ago

When I try to redefine the cube's key it appears as it does not change. This is my model:


    "cubes": [
        {
            "name": "un_hi",
            "dimensions": [
                "date",
                "location",
                "transport"
            ],
            "key": 
                "ag_id"
            ,
            "joins":[
                 {"master":"un_hi.eid",
                 "detail":"agency_event.eid"}
            ],
            "aggregates": [
                {
                    "name": "record_count",
                    "function": "count"
                }
            ],
            "mappings": {
                "location.latitude": "un_hi.latitude",
                "location.longitude": "un_hi.longitude",
                "transport.unityp":"un_hi.unityp"
            }
      }
]

So I am trying to change the key to ag_id, but then the browser is doing this query: Screenshot_2020-04-06 Screenshot from 2020-04-06 06-44-22 png (PNG Image, 3286 × 1080 pixels) What am I doing wrong? Thank you for your time!