villebro commented on a change in pull request #16139:
URL: https://github.com/apache/superset/pull/16139#discussion_r684993131
##########
File path: superset/connectors/sqla/models.py
##########
@@ -1056,14 +1062,15 @@ def get_sqla_query( # pylint:
disable=too-many-arguments,too-many-locals,too-ma
# filter out the pseudo column __timestamp from columns
columns = columns or []
columns = [col for col in columns if col != utils.DTTM_ALIAS]
+ time_grain = extras.get("time_grain_sqla")
+ dttm_col = columns_by_name.get(granularity) if granularity else None
Review comment:
These are moved up in the code as they are needed earlier now
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]