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

Fixing Date Time issue as seen in v3.1.0 #27076

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dfoley84
Copy link

SUMMARY

Fix was Merged #25318, but issue is still reproducible on Superset version 3.0.0 & 3.1.0

:ERROR:superset.views.base:Excel does not support datetimes with timezones. Please ensure that datetimes are timezone unaware before writing to Excel. Traceback (most recent call last): File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/usr/local/lib/python3.9/site-packages/flask_appbuilder/security/decorators.py", line 95, in wraps return f(self, *args, **kwargs) File "/app/superset/views/base_api.py", line 127, in wraps raise ex File "/app/superset/views/base_api.py", line 121, in wraps duration, response = time_function(f, self, *args, **kwargs) File "/app/superset/utils/core.py", line 1454, in time_function response = func(*args, **kwargs) File "/app/superset/utils/log.py", line 255, in wrapper value = f(*args, **kwargs) File "/app/superset/charts/data/api.py", line 256, in data return self._get_data_response( File "/app/superset/charts/data/api.py", line 412, in _get_data_response result = command.run(force_cached=force_cached) File "/app/superset/commands/chart/data/get_data_command.py", line 45, in run payload = self._query_context.get_payload( File "/app/superset/common/query_context.py", line 101, in get_payload return self._processor.get_payload(cache_query_context, force_cached) File "/app/superset/common/query_context_processor.py", line 600, in get_payload query_results = [ File "/app/superset/common/query_context_processor.py", line 601, in <listcomp> get_query_results( File "/app/superset/common/query_actions.py", line 224, in get_query_results return result_func(query_context, query_obj, force_cached) File "/app/superset/common/query_actions.py", line 186, in _get_results payload = _get_full(query_context, query_obj, force_cached) File

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

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
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.

@michael-s-molina
Copy link
Member

@betodealmeida could you review this PR given that you added the # timezones are not supported comment?

Copy link

codecov bot commented Feb 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 67.35%. Comparing base (faaf14b) to head (b2aaaf4).
Report is 1116 commits behind head on master.

Files with missing lines Patch % Lines
superset/utils/excel.py 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #27076      +/-   ##
==========================================
+ Coverage   67.22%   67.35%   +0.13%     
==========================================
  Files        1899     1899              
  Lines       74387    74389       +2     
  Branches     8276     8276              
==========================================
+ Hits        50006    50107     +101     
+ Misses      22326    22227      -99     
  Partials     2055     2055              
Flag Coverage Δ
hive 53.81% <0.00%> (?)
mysql 78.03% <0.00%> (+0.02%) ⬆️
postgres 78.13% <0.00%> (-0.01%) ⬇️
presto 53.76% <0.00%> (?)
python 78.55% <0.00%> (+0.27%) ⬆️
sqlite 77.65% <0.00%> (-0.01%) ⬇️

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.

@rusackas
Copy link
Member

This is still awaiting input from @betodealmeida, but in the meantime it also needs a rebase, and whatever adjustments are needed to pass CI. I'll convert this to draft mode until the touchups are made. I assume this is still an issue in 4.x, but that might warrant reproducing as well. Sorry this slipped through the cracks so long, we're trying to get better about being more timely on these things :)

@rusackas rusackas marked this pull request as draft August 28, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants