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

feat: switch from sqlalchemy-trino to trino-python-client #19957

Merged
merged 1 commit into from
May 5, 2022

Conversation

dungdm93
Copy link
Contributor

@dungdm93 dungdm93 commented May 5, 2022

SUMMARY

Hello there,
I'm the author of sqlalchemy-trino, which is Trino (f.k.a PrestoSQL) dialect for SQLAlchemy.
Since trinodb/trino-python-client#81, all its code of is merged into upstream project. And sqlalchemy-trino is deprecated.
So SuperSet should switch from sqlalchemy-trino to trino-python-client

This PR also update trino.mdx docs from #17593, which may being lost during refactoring.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@dungdm93
Copy link
Contributor Author

dungdm93 commented May 5, 2022

cc @betodealmeida, @villebro

@codecov
Copy link

codecov bot commented May 5, 2022

Codecov Report

Merging #19957 (018b3a6) into master (902ac05) will decrease coverage by 0.16%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master   #19957      +/-   ##
==========================================
- Coverage   66.27%   66.11%   -0.17%     
==========================================
  Files        1712     1712              
  Lines       63957    63957              
  Branches     6720     6720              
==========================================
- Hits        42390    42284     -106     
- Misses      19859    19965     +106     
  Partials     1708     1708              
Flag Coverage Δ
hive ?
mysql 81.99% <ø> (+<0.01%) ⬆️
postgres 82.04% <ø> (+<0.01%) ⬆️
presto ?
python 82.12% <ø> (-0.35%) ⬇️
sqlite 81.78% <ø> (+<0.01%) ⬆️
unit ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/db_engines/hive.py 0.00% <0.00%> (-85.19%) ⬇️
superset/db_engine_specs/hive.py 70.22% <0.00%> (-15.65%) ⬇️
superset/db_engine_specs/presto.py 83.36% <0.00%> (-5.34%) ⬇️
superset/connectors/sqla/models.py 88.75% <0.00%> (-1.20%) ⬇️
superset/initialization/__init__.py 91.03% <0.00%> (-0.36%) ⬇️
superset/db_engine_specs/base.py 87.95% <0.00%> (-0.34%) ⬇️
superset/models/core.py 89.09% <0.00%> (-0.24%) ⬇️
superset/utils/core.py 89.47% <0.00%> (-0.12%) ⬇️
superset/db_engine_specs/__init__.py 87.17% <0.00%> (+2.56%) ⬆️

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 902ac05...018b3a6. Read the comment docs.

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

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

This is awesome!

@@ -64,7 +64,7 @@ def get_git_sha() -> str:
zip_safe=False,
entry_points={
"console_scripts": ["superset=superset.cli.main:superset"],
"sqlalchemy.dialects": ["trinonative = sqlalchemy_trino.dialect:TrinoDialect"],
"sqlalchemy.dialects": ["trinonative = trino.sqlalchemy.dialect:TrinoDialect"],
Copy link
Member

@betodealmeida betodealmeida May 5, 2022

Choose a reason for hiding this comment

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

Hopefully we'll get a new PyHive release soon and we'll get rid of this.

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/M 🚢 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants