FAQ: using CAST in Python

Question: How do you use CAST in python?

Answer: Rockset doesn’t support CAST in the python query builder. But you can use CAST in sql text with python client. Example:

Q("SELECT * FROM foo WHERE ts = CAST('2017-08-25' AS datetime)")