Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie committed Sep 16, 2022
1 parent d3518c2 commit 4387f29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/common/query_context_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def get_query_result(self, query_object: QueryObject) -> QueryResult:
return result

def normalize_df(self, df: pd.DataFrame, query_object: QueryObject) -> pd.DataFrame:
# todo: should support "python_date_format" and "get_column" in each datasouce
# todo: should support "python_date_format" and "get_column" in each datasource
def _get_timestamp_format(
source: BaseDatasource, column: Optional[str]
) -> Optional[str]:
Expand All @@ -263,7 +263,7 @@ def _get_timestamp_format(
query_object.granularity,
]
if datasource
# Query datasource didn't supported `get_column`
# Query datasource didn't support `get_column`
and hasattr(datasource, "get_column")
and (col := datasource.get_column(label))
and col.is_dttm
Expand Down

0 comments on commit 4387f29

Please sign in to comment.