Commit 41fa8aaf authored by mouadh's avatar mouadh

measures at the bottom (in query builder)

parent 79af07b5
......@@ -86,11 +86,6 @@ def _construct_web_star_schema_config_file(executer_instance, cubes_obj):
db = MyDB(db=executer_instance.cube)
# load facts table
# measures in config-file only
if cubes_obj.facts[0].measures:
executer_instance.measures = cubes_obj.facts[0].measures
all_columns += cubes_obj.facts[0].measures
if cubes_obj.facts[0].columns:
all_columns += cubes_obj.facts[0].columns
......@@ -122,6 +117,11 @@ def _construct_web_star_schema_config_file(executer_instance, cubes_obj):
all_columns += list(tab.columns)
tables.update({table.name: tab})
# measures in config-file only
if cubes_obj.facts[0].measures:
executer_instance.measures = cubes_obj.facts[0].measures
all_columns += cubes_obj.facts[0].measures
for fact_key, dimension_and_key in cubes_obj.facts[0].keys.items():
dimension_name = dimension_and_key.split('.')[0]
if dimension_name in tables.keys():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment