apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
60.8k stars 13.16k forks source link

Datetime column not provided error when implementing an Annotation Layer #25347

Closed TomBurdge closed 1 week ago

TomBurdge commented 10 months ago

When embedding a table as an interval annotation layer in a line chart, there is an error.

This is in 3.0.0 - we updated to this (somewhat unexpectedly, by restarting and using the latest image) yesterday. This release appears to have introduced the bug.

How to reproduce the bug

  1. Create a dataset, with a BigQuery db connection, as: SELECT "Latest periods" AS latest_periods, LAST_DAY(CURRENT_DATE(), MONTH) AS end_of_current_month, LAST_DAY(DATE_ADD(CURRENT_DATE(),INTERVAL -1 MONTH), MONTH) AS end_of_previous_month;

  2. Try to embed this chart in a line chart.

Expected results

As with previous superset versions, I would expect an annotation layer to embed (either as an interval or event - both cause an error).

Actual results

Receives an error as in the image.

"ERROR: Error: Datetime column not provided as part table configuration and is required by this type of chart"

Screenshots

Image attached. This does not seem to be limited to my specific table. image

Environment

Checklist

Make sure to follow these steps before submitting your issue - thank you!

Additional context

Add any other context about the problem here.

rtexelm commented 5 months ago

I came across a similar problem recently but it seemed to be caused by my choice of dataset. Curious if you have had any new experience with this one?

rusackas commented 1 week ago

Closing this because: 1) It's gone stale 2) The last clarifying question wasn't responded to 3) We support Superset 3.1 / 4.x at the moment.

Happy to re-open this if we can gain any updated context :)