Skip to content

Commit

Permalink
add column_names to AnnotationDatasource
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Aug 10, 2020
1 parent 0cc9e5b commit 57aaed8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions superset/connectors/sqla/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ class AnnotationDatasource(BaseDatasource):
cache_timeout = 0
changed_on = None
type = "annotation"
column_names = [
"created_on",
"changed_on",
"id",
"start_dttm",
"end_dttm",
"layer_id",
"short_descr",
"long_descr",
"json_metadata",
"created_by_fk",
"changed_by_fk",
]

def query(self, query_obj: QueryObjectDict) -> QueryResult:
error_message = None
Expand Down

0 comments on commit 57aaed8

Please sign in to comment.