Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comma in dimension name causes filtering error #78

Open
fpieront opened this issue Jul 15, 2016 · 0 comments
Open

Comma in dimension name causes filtering error #78

fpieront opened this issue Jul 15, 2016 · 0 comments
Assignees
Labels

Comments

@fpieront
Copy link

fpieront commented Jul 15, 2016

I have found that with CubesViewer 2.0.2, Cubes 1.1 and Django 1.9, dimensions containing a comma produce the following error when selected for filtering:

capture

The Cubes slicer server returns:

    condition = context.condition_for_cell(cell)
  File "build/bdist.linux-x86_64/egg/cubes/sql/query.py", line 948, in condition_for_cell
    condition = and_(*self.conditions_for_cuts(cell.cuts))
  File "build/bdist.linux-x86_64/egg/cubes/sql/query.py", line 966, in conditions_for_cuts
    hierarchy, cut.invert)
  File "build/bdist.linux-x86_64/egg/cubes/sql/query.py", line 1004, in condition_for_point
    levels = self.level_keys(dim, hierarchy, path)
  File "build/bdist.linux-x86_64/egg/cubes/sql/query.py", line 1098, in level_keys
    raise HierarchyError("Path '{}' is longer than hierarchy. "
NameError: global name 'HierarchyError' is not defined

The request passed to the Cubes server is the following:

"GET /cube/listings_cube_ph/aggregate?cut=agent%40default%3ADimension%2C+Name. HTTP/1.0" 500 -

(it seems that '%2C represents the comma).
`

@jjmontesl jjmontesl added the bug label Aug 24, 2016
@jjmontesl jjmontesl self-assigned this Aug 24, 2016
@jjmontesl jjmontesl changed the title comma in dimension name causes filtering error Comma in dimension name causes filtering error Aug 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants