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
6eaaab60
Commit
6eaaab60
authored
Jun 21, 2017
by
mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change merging
parent
6fea0e10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
olapy/core/mdx/executor/execute_config_file.py
olapy/core/mdx/executor/execute_config_file.py
+6
-6
No files found.
olapy/core/mdx/executor/execute_config_file.py
View file @
6eaaab60
...
...
@@ -72,14 +72,14 @@ def _construct_star_schema_config_file(executer_instance, cubes_obj):
df
.
rename
(
columns
=
dimension
.
columns
,
inplace
=
True
)
# todo test with this
fusion
=
fusion
.
merge
(
df
,
left_on
=
fact_key
,
right_on
=
dimension_and_key
.
split
(
'.'
)[
1
])
#
fusion = fusion.merge(
#
df, left_on=fact_key, right_on=dimension_and_key.split('.')[1])
# TODO CHOSE BETWEEN THOSES DF
#
fusion = fusion.merge(
#
df, left_on=fact_key, right_on=dimension_and_key.split('.')[1], how='left',
#
#
remove suffixe from dimension and keep the same column name for facts
#
suffixes=('', '_y'))
fusion
=
fusion
.
merge
(
df
,
left_on
=
fact_key
,
right_on
=
dimension_and_key
.
split
(
'.'
)[
1
],
how
=
'left'
,
# remove suffixe from dimension and keep the same column name for facts
suffixes
=
(
''
,
'_y'
))
memory_usage
(
"2 - after query, before fetchall /////// _construct_star_schema_config_file"
)
# TODO CHOSE BETWEEN THOSES DF
...
...
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