vertica query and pushid dynamo query