john-bodley commented on code in PR #24942:
URL: https://github.com/apache/superset/pull/24942#discussion_r1290691643


##########
superset/connectors/sqla/models.py:
##########
@@ -1011,7 +1013,7 @@ def adhoc_column_to_sqla(  # pylint: 
disable=too-many-locals
         if is_dttm and has_timegrain:
             sqla_column = self.db_engine_spec.get_timestamp_expr(
                 col=sqla_column,
-                pdf=None,
+                pdf=pdf,

Review Comment:
   @zhaoyongjie I'm aware of what the Python Date Format (PDF) represents, 
though thanks for clarifying that this shouldn't be used for ad-hoc expressions.
   
   Note we [do already 
have](https://github.com/apache/superset/blob/master/superset/db_engine_specs/pinot.py)
 a Pino DB engine spec, but maybe only adding the `column_datatype_to_string` 
method is required.



-- 
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]

Reply via email to