vnnw opened a new issue #9642:
URL: https://github.com/apache/incubator-superset/issues/9642


   Multiple versions in the code file missing the cast funcion of  Fetch Values 
Predicate' where clause as Sqlalchemy Text, result in raising error such as: 
sqlalchemy.exc.ArgumentError: Textual SQL expression "ds < datetime('now')" 
should be explicitly declared as text("ds < datetime('now')")
   
   This line 
   
https://github.com/apache/incubator-superset/blob/master/superset/connectors/sqla/models.py#L604
   
   should be modified as 
   
   ```
   qry = qry.where(text(tp.process_template(self.fetch_values_predicate)))
   ```
   


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

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