Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
olapy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
olapy
Commits
00f6fe0f
Commit
00f6fe0f
authored
Jun 15, 2017
by
mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix measures with web config
parent
363eb1fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
olapy/core/mdx/executor/execute.py
olapy/core/mdx/executor/execute.py
+14
-0
No files found.
olapy/core/mdx/executor/execute.py
View file @
00f6fe0f
...
@@ -172,6 +172,20 @@ class MdxEngine:
...
@@ -172,6 +172,20 @@ class MdxEngine:
def
get_measures
(
self
):
def
get_measures
(
self
):
""":return: all numerical columns in facts table."""
""":return: all numerical columns in facts table."""
# col.lower()[-2:] != 'id' to ignore any id column
# col.lower()[-2:] != 'id' to ignore any id column
# if web get measures from config file
config_file_parser
=
ConfigParser
(
self
.
cube_path
)
if
self
.
client
==
'web'
and
config_file_parser
.
config_file_exist
(
'web'
):
for
cubes
in
config_file_parser
.
construct_cubes
(
self
.
client
):
# TODO temp
# update facts name
self
.
facts
=
cubes
.
facts
[
0
].
table_name
if
cubes
.
facts
[
0
].
measures
:
return
cubes
.
facts
[
0
].
measures
return
[
return
[
col
col
for
col
in
self
.
tables_loaded
[
self
.
facts
].
select_dtypes
(
for
col
in
self
.
tables_loaded
[
self
.
facts
].
select_dtypes
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment