You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/09/27 20:44:49 UTC

[GitHub] [superset] stephanclaus opened a new issue, #21610: Advanced Analytics time comparison is feature is not working

stephanclaus opened a new issue, #21610:
URL: https://github.com/apache/superset/issues/21610

   A clear and concise description of what the bug is.
   
   #### How to reproduce the bug
   
   1. Create a new chart with Line or Smooth Line
   2. Add a date column into the time column and select the same column for the x axis
   3. Use the Advanced Analytics Section to create a lagging Metric with Time Shift (e.g. 1 year) and selection Actual Values
   4. Click Update Chart
   5. see error: Unexpected error Error: A time column must be specified when using a Time Comparison.
   
   ### Expected results
   
   The chart will be rendered as expected with a YoY comparison
   
   ### Actual results
   
   An error is thrown: Unexpected error Error: A time column must be specified when using a Time Comparison. 
   
   #### Screenshots
   
   <img width="323" alt="config_1" src="https://user-images.githubusercontent.com/75787042/192631106-8e81e56a-ec9b-46e0-ab60-34b29243c4b3.png">
   <img width="322" alt="config_2" src="https://user-images.githubusercontent.com/75787042/192631113-483fe6d3-7962-4e0c-9def-ecbd0d94cc15.png">
   <img width="818" alt="error" src="https://user-images.githubusercontent.com/75787042/192631117-80d5c89e-730a-4f25-a42e-4ba4cb002e1b.png">
   
   ### Environment
   
   (please complete the following information):
   
   - browser type and version: chrome Version 105.0.5195.102
   - superset version: `2.0.0`
   - python version: `python --version`
   - node.js version: `node -v`
   - any feature flags active:
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   ### Additional context
   
   Used to work before in superset 1.5.1. When I remove the configuration in the Advanced Analytics Section, the chart will render just fine. I assume Superset is too restrictive when a date column is added but the Advanced Analytics really expect a time column.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] zhaoyongjie commented on issue #21610: Advanced Analytics time comparison is feature is not working

Posted by "zhaoyongjie (via GitHub)" <gi...@apache.org>.
zhaoyongjie commented on issue #21610:
URL: https://github.com/apache/superset/issues/21610#issuecomment-1476160973

   @stephanclaus I can't reproduce this issue on the latest master and 2.1.0RC2. I believe this [PR](https://github.com/apache/superset/pull/20618) has fixed the issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] zhaoyongjie commented on issue #21610: Advanced Analytics time comparison is feature is not working

Posted by GitBox <gi...@apache.org>.
zhaoyongjie commented on issue #21610:
URL: https://github.com/apache/superset/issues/21610#issuecomment-1261080598

   @stephanclaus Could you reproduce this issue on the other database as well?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] zhaoyongjie commented on issue #21610: Advanced Analytics time comparison is feature is not working

Posted by GitBox <gi...@apache.org>.
zhaoyongjie commented on issue #21610:
URL: https://github.com/apache/superset/issues/21610#issuecomment-1260976978

   Hi @stephanclaus, which database do you use? I have fixed an issue at [PR](https://github.com/apache/superset/pull/21378) recently for the SQLite.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] stephanclaus commented on issue #21610: Advanced Analytics time comparison is feature is not working

Posted by GitBox <gi...@apache.org>.
stephanclaus commented on issue #21610:
URL: https://github.com/apache/superset/issues/21610#issuecomment-1261100429

   I just tried it again with a PostGres database and there the feature works as expected.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] mattitoo commented on issue #21610: Advanced Analytics time comparison is feature is not working

Posted by "mattitoo (via GitHub)" <gi...@apache.org>.
mattitoo commented on issue #21610:
URL: https://github.com/apache/superset/issues/21610#issuecomment-1451912083

   Can confirm this is not working on Snowflake


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] yousoph closed issue #21610: Advanced Analytics time comparison is feature is not working

Posted by "yousoph (via GitHub)" <gi...@apache.org>.
yousoph closed issue #21610: Advanced Analytics time comparison is feature is not working
URL: https://github.com/apache/superset/issues/21610


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] stephanclaus commented on issue #21610: Advanced Analytics time comparison is feature is not working

Posted by GitBox <gi...@apache.org>.
stephanclaus commented on issue #21610:
URL: https://github.com/apache/superset/issues/21610#issuecomment-1261078293

   Hi @zhaoyongjie, we are using Snowflake.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org