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
cd504197
Commit
cd504197
authored
May 03, 2017
by
Stefane Fermigier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo on variable name.
parent
68658139
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
33 deletions
+18
-33
olapy/core/mdx/executor/execute.py
olapy/core/mdx/executor/execute.py
+15
-15
requirements.in
requirements.in
+0
-15
tests/test_xmla_notox.py
tests/test_xmla_notox.py
+1
-1
tox.ini
tox.ini
+2
-2
No files found.
olapy/core/mdx/executor/execute.py
View file @
cd504197
...
...
@@ -15,7 +15,7 @@ import pandas.io.sql as psql
from
..tools.config_file_parser
import
ConfigParser
from
..tools.connection
import
MyDB
RUNNING_TOX
=
'RUN
T
ING_TOX'
in
os
.
environ
RUNNING_TOX
=
'RUN
N
ING_TOX'
in
os
.
environ
class
MdxEngine
:
...
...
@@ -121,7 +121,7 @@ class MdxEngine:
def
_get_tables_name
(
self
):
"""
get all tables names
:return: list tables names
"""
return
self
.
tables_loaded
.
keys
()
...
...
@@ -318,7 +318,7 @@ class MdxEngine:
def
_get_star_schema_dataframe
(
self
,
cube_name
):
"""
merge all DataFrames as star schema
:param cube_name: cube name with which we want to generate a star schema model
:return: star schema DataFrame
"""
...
...
@@ -358,7 +358,7 @@ class MdxEngine:
def
get_cube
(
self
):
"""
get path to the cube (example /home_directory/your_user_name/olapy-data/cubes)
:return: path to the cube
"""
return
os
.
path
.
join
(
self
.
cube_path
,
self
.
cube
)
...
...
@@ -367,27 +367,27 @@ class MdxEngine:
def
get_tuples
(
self
,
query
,
start
=
None
,
stop
=
None
):
"""
get all tuples in the mdx query
example:
SELECT {[Geography].[Geography].[All Continent].Members,
[Geography].[Geography].[Continent].[Europe]
} ON COLUMNS,
{[Product].[Product].[Company]
} ON ROWS
FROM {sales}
It returns [ ['Geography','Geography','Continent'],
['Geography','Geography','Continent','Europe'],
['Product','Product','Company']
]
:param query: mdx query
:param start: key-word in the query where we start (examples start = SELECT)
:param stop: key-word in the query where we stop (examples start = ON ROWS)
...
...
@@ -417,7 +417,7 @@ class MdxEngine:
def decorticate_query(self, query):
"""
get all tuples that exists in the MDX Query by axes
:param query: MDX Query
:return: dict of axis as key and tuples as value
"""
...
...
requirements.in
View file @
cd504197
...
...
@@ -19,18 +19,3 @@ Flask-WTF==0.12
plotly==1.12.9
XlsxWriter==0.9.3
# Tools / dev / testing
tox<3
pytest<4
pytest-cov
xmla
pip-tools
flake8
flake8-tidy-imports
mccabe
isort
yapf
pylint
PrettyTable
py-cpuinfo
gprof2dot
\ No newline at end of file
tests/test_xmla_notox.py
View file @
cd504197
...
...
@@ -15,7 +15,7 @@ from tests.xs0_responses import TEST_QUERY_AXIS0
HOST
=
"127.0.0.1"
PORT
=
8230
RUNNING_TOX
=
'RUN
T
ING_TOX'
in
os
.
environ
RUNNING_TOX
=
'RUN
N
ING_TOX'
in
os
.
environ
class
Member
(
object
):
...
...
tox.ini
View file @
cd504197
...
...
@@ -4,11 +4,11 @@ envlist = py27
[testenv]
setenv
=
RUN
T
ING_TOX
=
true
RUN
N
ING_TOX
=
true
HOME_DIR
=
{homedir}
whitelist_externals
=
make
commands
=
pip
install
-q
-r
requirements.txt
pip
install
-q
-r
requirements.txt
-r
dev-requirements.txt
pytest
tests
make
lint
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