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

fix(sqllab): Bugfix for tracking url transformation #17263

Merged
merged 2 commits into from
Nov 11, 2021
Merged

fix(sqllab): Bugfix for tracking url transformation #17263

merged 2 commits into from
Nov 11, 2021

Conversation

CodeingBoy
Copy link
Contributor

SUMMARY

This is a bugfix for #17262, review this issue for more information.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
image

After:
image

TESTING INSTRUCTIONS

  1. Create sample data table in Hive:
CREATE TABLE some_table(
    a INT,
    b STRING
);
INSERT INTO some_table(a, b) VALUES (1, '1'), (2, '2'), (3, '3'), (4, '4');
  1. Execute query SELECT a, COUNT(1) AS count FROM some_table GROUP BY a;, it should not report error and return results

ADDITIONAL INFORMATION

  • Has associated issue: Fixes Complex query with Hive will cause errors #17262
  • Required feature flags: no
  • 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
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.

Code change looks LGTM, thanks for fixing! However, I believe you will need to fix linting, as this change will exceed the maximum line width.

@villebro
Copy link
Member

Linking to original PR that introduced the regression: #14366

@codecov
Copy link

codecov bot commented Oct 29, 2021

Codecov Report

Merging #17263 (e6ab6f2) into master (b5246b2) will increase coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17263      +/-   ##
==========================================
+ Coverage   76.94%   76.96%   +0.02%     
==========================================
  Files        1039     1039              
  Lines       55608    55597      -11     
  Branches     7580     7580              
==========================================
+ Hits        42786    42793       +7     
+ Misses      12572    12554      -18     
  Partials      250      250              
Flag Coverage Δ
hive 81.54% <0.00%> (+0.07%) ⬆️
mysql 81.97% <0.00%> (+0.04%) ⬆️
postgres 81.98% <0.00%> (+0.04%) ⬆️
presto 81.85% <0.00%> (+0.05%) ⬆️
python 82.48% <0.00%> (+0.05%) ⬆️
sqlite 81.65% <0.00%> (+0.04%) ⬆️

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

Impacted Files Coverage Δ
superset/db_engine_specs/hive.py 86.48% <0.00%> (-0.34%) ⬇️
superset/connectors/sqla/models.py 87.39% <0.00%> (-0.09%) ⬇️
superset/config.py 91.50% <0.00%> (ø)
superset/utils/core.py 90.14% <0.00%> (ø)
superset/views/core.py 76.95% <0.00%> (+0.01%) ⬆️
superset/db_engine_specs/presto.py 90.37% <0.00%> (+0.41%) ⬆️
superset/cli.py 54.92% <0.00%> (+2.07%) ⬆️
superset/views/database/forms.py 94.44% <0.00%> (+7.34%) ⬆️
superset/annotation_layers/annotations/schemas.py 100.00% <0.00%> (+13.33%) ⬆️

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 b5246b2...e6ab6f2. Read the comment docs.

@villebro villebro added the v1.3 label Oct 29, 2021
@CodeingBoy
Copy link
Contributor Author

Hi @villebro, I have fixed linting by splitting into two statements. Is that OK?

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 added the v1.4 label Oct 30, 2021
@villebro villebro merged commit 2544a4a into apache:master Nov 11, 2021
eschutho pushed a commit that referenced this pull request Nov 17, 2021
* Bugfix for tracking url transformation

* Fix linting

(cherry picked from commit 2544a4a)
@CodeingBoy CodeingBoy deleted the hive-bugfix branch December 19, 2021 05:41
AAfghahi pushed a commit that referenced this pull request Jan 10, 2022
* Bugfix for tracking url transformation

* Fix linting
@mistercrunch mistercrunch added 🍒 1.4.0 🍒 1.4.1 🍒 1.4.2 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.0 labels Mar 13, 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/XS v1.3 v1.4 🍒 1.4.0 🍒 1.4.1 🍒 1.4.2 🚢 1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Complex query with Hive will cause errors
3 participants