Also, consider throwing warning in query in the command line client. In the command line client, query does table query and the deprecated query. We need to thrown warnings for the latter.
Received warning in interactive console (ipython) when calling query but didn't get warning in a script unless i set the -Wdefault flag