Stiivi/cubes — Issue #11: Problem with denormalizing localizable model
Author: Stiivi
Created: 2011-10-11 13:31:45+00:00
State: open
Labels: bug

When trying to denormalize localized model:

Traceback (most recent call last):
File "denormalize.py", line 53, in
tool.create_view()
File "denormalize.py", line 50, in create_view
builder.create_view(VIEW_NAME, schema = DATAMART_SCHEMA, index = True)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cubes-0.7.0-py2.7.egg/cubes/backends/sql/builder.py", line 120, in create_view
self._create_view_expression()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cubes-0.7.0-py2.7.egg/cubes/backends/sql/builder.py", line 101, in _create_view_expression
self._collect_columns()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cubes-0.7.0-py2.7.egg/cubes/backends/sql/builder.py", line 245, in _collect_columns
self.columns.append(self._select_column(attribute, locale))
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cubes-0.7.0-py2.7.egg/cubes/backends/sql/builder.py", line 294, in _select_column
% (localized_alias, table_name, field_name) )
cubes.model.ModelError: Mapped column 'date.month_name.en.en' does not exist (as dm_date.month_name.en_en)