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: Create db_engine_spec ibmi.py #26161

Merged
merged 3 commits into from
Dec 4, 2023

Conversation

wAVeckx
Copy link
Contributor

@wAVeckx wAVeckx commented Dec 1, 2023

SUMMARY

Similar to db2, but needed for ibmi with some adjustments. This will work with sqlalchemy-ibmi.

TESTING INSTRUCTIONS

Test with SQL Lab with an IBM i database. Without this change it will fail with using LIMIT.

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

Copy link

codecov bot commented Dec 1, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (b2ea97a) 69.13% compared to head (fad8761) 66.90%.
Report is 10 commits behind head on master.

Files Patch % Lines
superset/db_engine_specs/ibmi.py 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #26161      +/-   ##
==========================================
- Coverage   69.13%   66.90%   -2.23%     
==========================================
  Files        1941     1942       +1     
  Lines       75895    75908      +13     
  Branches     8454     8454              
==========================================
- Hits        52468    50790    -1678     
- Misses      21249    22940    +1691     
  Partials     2178     2178              
Flag Coverage Δ
hive ?
mysql 78.09% <87.50%> (-0.05%) ⬇️
postgres 78.18% <87.50%> (-0.08%) ⬇️
presto ?
python 78.32% <87.50%> (-4.63%) ⬇️
sqlite 76.84% <87.50%> (-0.08%) ⬇️
unit ?

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

Comment about DRYing up the code. Also, it would be great if you could add a few simple unit tests for this. You can take a look at tests/unit_tests/db_engine_specs.

superset/db_engine_specs/ibmi.py Outdated Show resolved Hide resolved
@wAVeckx
Copy link
Contributor Author

wAVeckx commented Dec 4, 2023

Not sure on the pre-commit failure.

@villebro
Copy link
Member

villebro commented Dec 4, 2023

@wAVeckx you're missing a newline before the class declaration:
image

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

LGTM

@villebro villebro merged commit b287ca7 into apache:master Dec 4, 2023
33 checks passed
sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.0.0 labels Apr 17, 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/S 🚢 4.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants