You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "michael-s-molina (via GitHub)" <gi...@apache.org> on 2023/08/30 18:17:16 UTC

[GitHub] [superset] michael-s-molina commented on a diff in pull request #25126: fix: Using Custom SQL as X Column while switching dataset for a chart

michael-s-molina commented on code in PR #25126:
URL: https://github.com/apache/superset/pull/25126#discussion_r1310599458


##########
superset/common/query_context_factory.py:
##########
@@ -128,7 +128,10 @@ def _apply_granularity(
 
         if granularity := query_object.granularity:
             filter_to_remove = None
-            if x_axis and x_axis in temporal_columns:
+            x_axis_column_name = (
+                x_axis["sqlExpression"] if isinstance(x_axis, dict) else x_axis
+            )

Review Comment:
   +1



-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org