Home > Software engineering >  start-cli -e 'query' just return 1000 lines and redirect to file can't auto stop in I
start-cli -e 'query' just return 1000 lines and redirect to file can't auto stop in I

Time:12-19

When I use start-cli.sh to execute a query SQL, it only returns top 1000 rows of the whole results. And then, I use start-cli.sh -e "sql" > redirect.txt, but it only gets 1000 rows and must use ctrl c to stop. How can I get the whole result?

CodePudding user response:

this is a known issue. One simple solution is using start-cli.sh -maxPRC -1 -e "sql" > redirect.txt. Thanks!

  • Related