Commit 0c45f011 authored by mouadh's avatar mouadh

additional facts columns

parent cacbb2d2
...@@ -91,6 +91,9 @@ def _construct_web_star_schema_config_file(executer_instance, cubes_obj): ...@@ -91,6 +91,9 @@ def _construct_web_star_schema_config_file(executer_instance, cubes_obj):
executer_instance.measures = cubes_obj.facts[0].measures executer_instance.measures = cubes_obj.facts[0].measures
all_columns += 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
fusion = psql.read_sql_query( fusion = psql.read_sql_query(
"SELECT * FROM {0}".format(executer_instance.facts), db.connection) "SELECT * FROM {0}".format(executer_instance.facts), db.connection)
......
...@@ -312,7 +312,10 @@ class ConfigParser: ...@@ -312,7 +312,10 @@ class ConfigParser:
}, },
measures=[ measures=[
mes.text for mes in xml_facts.findall('measures/name') mes.text for mes in xml_facts.findall('measures/name')
]) for xml_facts in tree.xpath('/cubes/cube/facts') ],
columns=xml_facts.find('columns').text.split(',')
) for xml_facts in tree.xpath('/cubes/cube/facts')
] ]
tables = [ tables = [
......
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