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
9927e268
Commit
9927e268
authored
Mar 24, 2017
by
Mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix generate celldata
parent
47529e6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
olapy/core/services/xmla_execute_tools.py
olapy/core/services/xmla_execute_tools.py
+11
-10
No files found.
olapy/core/services/xmla_execute_tools.py
View file @
9927e268
...
...
@@ -110,10 +110,10 @@ class XmlaExecuteTools():
'columns'
]
and
mdx_execution_result
[
'columns_desc'
][
'rows'
]:
# ['Geography','America']
tuples
=
[
zip
(
*
[[[
key
]
+
list
(
row
)
for
row
in
splited_df
[
key
].
itertuples
(
index
=
False
)]
for
key
in
splited_df
.
keys
()
if
key
is
not
self
.
executer
.
facts
])
zip
(
*
[[[
key
]
+
list
(
row
)
for
row
in
splited_df
[
key
].
itertuples
(
index
=
False
)]
for
key
in
splited_df
.
keys
()
if
key
is
not
self
.
executer
.
facts
])
]
first_att
=
2
...
...
@@ -122,10 +122,10 @@ class XmlaExecuteTools():
else
:
# ['Geography','Amount','America']
tuples
=
[
zip
(
*
[[[
key
]
+
[
mes
]
+
list
(
row
)
for
row
in
splited_df
[
key
].
itertuples
(
index
=
False
)]
for
key
in
splited_df
.
keys
()
if
key
is
not
self
.
executer
.
facts
])
zip
(
*
[[[
key
]
+
[
mes
]
+
list
(
row
)
for
row
in
splited_df
[
key
].
itertuples
(
index
=
False
)]
for
key
in
splited_df
.
keys
()
if
key
is
not
self
.
executer
.
facts
])
for
mes
in
self
.
executer
.
selected_measures
]
first_att
=
3
...
...
@@ -302,14 +302,15 @@ class XmlaExecuteTools():
"""
cell_data
=
""
index
=
0
for
measure
in
mdx_execution_result
[
'result'
].
columns
.
values
:
for
value
in
mdx_execution_result
[
'result'
][
measure
]
:
for
tuple
in
mdx_execution_result
[
'result'
].
itertuples
(
index
=
False
)
:
for
value
in
tuple
:
cell_data
+=
"""
<Cell CellOrdinal="{0}">
<Value xsi:type="xsi:long">{1}</Value>
</Cell>
"""
.
format
(
index
,
value
)
index
+=
1
return
cell_data
def
generate_axes_info_slicer
(
self
,
mdx_execution_result
):
...
...
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