TDQ-9533 append ' limit x' in sql query for vertica database.