Skip to content

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

Merged
betodealmeida merged 1 commit into
apache:masterfrom
dungdm93:trino-client
May 5, 2022
Merged

feat: switch from sqlalchemy-trino to trino-python-client#19957
betodealmeida merged 1 commit into
apache:masterfrom
dungdm93:trino-client

Conversation

@dungdm93
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

dungdm93 commented May 5, 2022

cc @betodealmeida, @villebro

@codecov
Copy link
Copy Markdown

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
Copy Markdown
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!

Comment thread setup.py
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
Copy Markdown
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.

@betodealmeida betodealmeida merged commit 58e65ad into apache:master May 5, 2022
hughhhh pushed a commit to hve-labs/superset that referenced this pull request May 11, 2022
philipher29 pushed a commit to ValtechMobility/superset that referenced this pull request Jun 9, 2022
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.0.0 First shipped in 2.0.0 labels Mar 13, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
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 First shipped in 2.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants