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

Remove unused methods from Presto #8350

Merged
merged 4 commits into from
Oct 4, 2019
Merged

Conversation

betodealmeida
Copy link
Member

@betodealmeida betodealmeida commented Oct 4, 2019

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

#8233 greatly simplified the logic of Presto's expand_data method, leaving behind a bunch of unused methods. This PR removes them.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

Tested using Presto, everything works.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

REVIEWERS

@willbarrett @mistercrunch

Copy link
Member

@willbarrett willbarrett left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for doing this.

@@ -157,7 +157,7 @@ def get_view_names(

if schema:
sql = (
"SELECT table_name FROM information_schema.views"
"SELECT table_name FROM information_schema.views "
Copy link
Member

Choose a reason for hiding this comment

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

Good catch

@codecov-io
Copy link

codecov-io commented Oct 4, 2019

Codecov Report

Merging #8350 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8350      +/-   ##
==========================================
+ Coverage   67.53%   67.58%   +0.05%     
==========================================
  Files         447      447              
  Lines       22644    22510     -134     
  Branches     2363     2363              
==========================================
- Hits        15292    15214      -78     
+ Misses       7214     7158      -56     
  Partials      138      138
Impacted Files Coverage Δ
superset/db_engine_specs/presto.py 64.91% <100%> (-4.53%) ⬇️
superset/views/core.py 70.15% <0%> (+0.2%) ⬆️
superset/models/core.py 81.93% <0%> (+0.63%) ⬆️
superset/dataframe.py 94.48% <0%> (+1.57%) ⬆️
superset/db_engine_specs/mysql.py 92.15% <0%> (+49.01%) ⬆️

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 ec86d9d...cfee201. Read the comment docs.

@betodealmeida betodealmeida merged commit 04c3d1f into apache:master Oct 4, 2019
serenajiang pushed a commit to airbnb/superset-fork that referenced this pull request Oct 9, 2019
* Remove unused methods from Presto

* Remove tests

* Fix bug in PRESTO_SPLIT_VIEWS_FROM_TABLES

* Fix lint
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.35.0 labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/L 🚢 0.35.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants