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

Raise a more helpful error for duplicated columns in Join #820

Merged
merged 2 commits into from
Sep 23, 2019

Conversation

thoo
Copy link
Contributor

@thoo thoo commented Sep 23, 2019

Fix #819

Raise an error >>> ValueError: columns overlap but no suffix specified: ['letter'] if the duplicated column(s) is found but no suffix is specified.

Also added the pytests.

@softagram-bot
Copy link

Softagram Impact Report for pull/820 (head commit: 08f25bd)

⭐ Change Overview

Showing the changed files, dependency changes and the impact - click for full size
(Open in Softagram Desktop for full details)

📄 Full report

Impact Report explained. Give feedback on this report to [email protected]

@codecov-io
Copy link

codecov-io commented Sep 23, 2019

Codecov Report

Merging #820 into master will decrease coverage by 1.65%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #820      +/-   ##
==========================================
- Coverage   94.33%   92.68%   -1.66%     
==========================================
  Files          32       32              
  Lines        5844     5849       +5     
==========================================
- Hits         5513     5421      -92     
- Misses        331      428      +97
Impacted Files Coverage Δ
databricks/koalas/frame.py 96.82% <100%> (+0.01%) ⬆️
databricks/koalas/usage_logging/__init__.py 23.14% <0%> (-74.08%) ⬇️
databricks/koalas/usage_logging/usage_logger.py 50% <0%> (-50%) ⬇️
databricks/koalas/__init__.py 77.5% <0%> (-7.5%) ⬇️
databricks/conftest.py 93.02% <0%> (-4.66%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b00e3d...08f25bd. Read the comment docs.

Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for a PR @thoo.

@HyukjinKwon HyukjinKwon merged commit f6f27b0 into databricks:master Sep 23, 2019
with self.assertRaisesRegex(ValueError,
"columns overlap but no suffix specified"):
kdf1.join(ks1, how='outer')
kdf1.join(kdf2, how='outer')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually this only tests the first line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry. I will fix it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes. Sorry for missing this one will take a closer look next time @ueshin

thoo added a commit to thoo/koalas that referenced this pull request Sep 24, 2019
* upstream/master:
  Updated the koalas logo in readme.md
  Adding koalas-logo without label
  Adding Koalas logo to readme
  Adding koalas logo
  Clean pandas usage in frame.agg (databricks#821)
  Implement Series.aggregate and agg (databricks#816)
  Raise a more helpful error for duplicated columns in Join (databricks#820)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Raise error for duplicate columns in join
5 participants