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: utf-16 json encoder support #28486

Merged
merged 1 commit into from
May 15, 2024
Merged

Conversation

eyalezer
Copy link
Contributor

SUMMARY

Following the pessimistic json encoder fix and an issue reported in #28372 which fails to decode UTF-16 bytes in SQL Lab. Added UTF-16 encoding support for json serialization.

@dosubot dosubot bot added the sqllab Namespace | Anything related to the SQL Lab label May 14, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Congrats on making your first PR and thank you for contributing to Superset! 🎉 ❤️

We hope to see you in our Slack community too! Not signed up? Use our Slack App to self-register.

Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for the fix

Copy link

codecov bot commented May 15, 2024

Codecov Report

Attention: Patch coverage is 77.77778% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 83.43%. Comparing base (76d897e) to head (a676d10).
Report is 112 commits behind head on master.

Files Patch % Lines
superset/sqllab/execution_context_convertor.py 60.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #28486       +/-   ##
===========================================
+ Coverage   60.48%   83.43%   +22.94%     
===========================================
  Files        1931      521     -1410     
  Lines       76236    37429    -38807     
  Branches     8568        0     -8568     
===========================================
- Hits        46114    31228    -14886     
+ Misses      28017     6201    -21816     
+ Partials     2105        0     -2105     
Flag Coverage Δ
hive 49.07% <33.33%> (-0.09%) ⬇️
javascript ?
mysql 77.14% <77.77%> (?)
postgres 77.25% <77.77%> (?)
presto 53.63% <33.33%> (-0.17%) ⬇️
python 83.43% <77.77%> (+19.94%) ⬆️
sqlite 76.70% <77.77%> (?)
unit 58.80% <44.44%> (+1.18%) ⬆️

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.

@mistercrunch
Copy link
Member

Looks like tests are failing ...

@eyalezer
Copy link
Contributor Author

eyalezer commented May 15, 2024

indeed missed one integration test and also i see now some format issues, will fix both

@eyalezer
Copy link
Contributor Author

@mistercrunch - Fixed and tested locally both formats and integration tests

@mistercrunch mistercrunch merged commit 5f714b7 into apache:master May 15, 2024
34 checks passed
@eyalezer
Copy link
Contributor Author

eyalezer commented May 15, 2024

@mistercrunch
Discovered additional instances throughout the system that are still uncovered...
i'll create a new pr for those

jzhao62 pushed a commit to jzhao62/superset that referenced this pull request May 16, 2024
Co-authored-by: Eyal Ezer <eyal.ezer@ge.com>
EnxDev pushed a commit to EnxDev/superset that referenced this pull request May 31, 2024
Co-authored-by: Eyal Ezer <eyal.ezer@ge.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M sqllab Namespace | Anything related to the SQL Lab
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants