betodealmeida commented on code in PR #23666:
URL: https://github.com/apache/superset/pull/23666#discussion_r1164556717


##########
superset/models/helpers.py:
##########
@@ -1314,7 +1314,7 @@ def dttm_sql_literal(self, dttm: sa.DateTime, col_type: 
Optional[str]) -> str:
         if sql:
             return sql
 
-        return f'{dttm.strftime("%Y-%m-%d %H:%M:%S.%f")}'
+        return f"""'{dttm.strftime("%Y-%m-%d %H:%M:%S.%f")}'"""

Review Comment:
   This is the wrong place to fix this... the single quotes are a 
database-specific construction, and adding them should be delegated to the 
database.
   
   Where is `dttm_sql_literal` called? Why are other DBs quoting this correctly 
but not Presto?



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