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 2021/09/24 11:23:52 UTC

[GitHub] [superset] frafra opened a new issue #16832: Time-series Line Chart - Time Grain - does not work if time is not a string

frafra opened a new issue #16832:
URL: https://github.com/apache/superset/issues/16832


   "Time-series Line Chart" can show timeseries where the time column is a bigint, but it fails when trying to set the time grain.
   
   ### Expected results
   
   It should work.
   
   ### Actual results
   
   ```
   Error: function date_trunc(unknown, bigint) does not exist LINE 1: SELECT DATE_TRUNC('year', year) AS __timestamp, ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. 
   ```
   
   #### Screenshots
   
   If applicable, add screenshots to help explain your problem.
   
   #### How to reproduce the bug
   
   1. Load default/examples datasets
   2. Go to "Games per Genre over time"
   3. Set the time grain to "Year"
   4. Click "Run"
   5. See the error
   
   ### Environment
   
   (please complete the following information):
   
   Latest Docker image.
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [x] 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
   
   `date_trunc` is used over the time column, which can be a string or can be an integer-like column. "Time grain" fails if the date column is not a string.


-- 
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] junlincc commented on issue #16832: Time-series Line Chart - Time Grain - does not work if time is not a string

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


   @villebro confirm! it's also happening on Echarts time series. please take a look? 


-- 
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] junlincc commented on issue #16832: Time-series Line Chart - Time Grain - does not work if time is not a string

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


   @frafra is it the Echarts time series or the legacy one? 


-- 
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] frafra commented on issue #16832: Time-series Line Chart - Time Grain - does not work if time is not a string

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


   @junlincc how can I determine that? I just selected "Time-series Line Chart", which seems to be one of the basic ones. No add-on installed, just plain Apache Superset.


-- 
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] junlincc edited a comment on issue #16832: Time-series Line Chart - Time Grain - does not work if time is not a string

Posted by GitBox <gi...@apache.org>.
junlincc edited a comment on issue #16832:
URL: https://github.com/apache/superset/issues/16832#issuecomment-928877571


   @villebro confirm! it's also happening on Echarts time series. please take a look? we can just make sure all the new charts work :)


-- 
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] junlincc commented on issue #16832: Time-series Line Chart - Time Grain - does not work if time is not a string

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


   @villebro confirm! it's also happening on Echarts time series. please take a look? 


-- 
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] junlincc edited a comment on issue #16832: Time-series Line Chart - Time Grain - does not work if time is not a string

Posted by GitBox <gi...@apache.org>.
junlincc edited a comment on issue #16832:
URL: https://github.com/apache/superset/issues/16832#issuecomment-928877571


   @villebro confirm! it's also happening on Echarts time series. please take a look? we can just make sure all the new charts work :)


-- 
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] frafra edited a comment on issue #16832: Time-series Line Chart - Time Grain - does not work if time is not a string

Posted by GitBox <gi...@apache.org>.
frafra edited a comment on issue #16832:
URL: https://github.com/apache/superset/issues/16832#issuecomment-950288430


   @junlincc how can I figure that out? I just selected "Time-series Line Chart", which seems to be one of the basic ones. No add-on installed, just plain Apache Superset.


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