Planning phase slow compared to execution

@unni

Seems like metadata retrieval, can you please run the query again and see if the validation time goes away?