Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Aug 5, 2022
1 parent eec6e57 commit 5ef569a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion superset/common/query_context_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
)
from superset.extensions import cache_manager, security_manager
from superset.models.helpers import QueryResult
from superset.models.sql_lab import Query
from superset.utils import csv
from superset.utils.cache import generate_cache_key, set_and_log_cache
from superset.utils.core import (
Expand Down Expand Up @@ -307,7 +308,11 @@ def processing_time_offsets( # pylint: disable=too-many-locals
}
join_keys = [col for col in df.columns if col not in metrics_mapping.keys()]

result = self._qc_datasource.query(query_object_clone_dct)
if isinstance(self._qc_datasource, Query):
result = self._qc_datasource.exc_query(query_object_clone_dct)
else:
result = self._qc_datasource.query(query_object_clone_dct)

queries.append(result.query)
cache_keys.append(None)

Expand Down

0 comments on commit 5ef569a

Please sign in to comment.