Hi, if it is just for CLI, it is ok. but be cautious that do not out of memory. And do not do it in JDBC or thrift client module.
in my opinion, we can cache some lines (e.g., 100lines), calculate the suitable blank space, and print the 100 lines, and then cache another 100 lines... Different loop may lead to a misaligned tab, but sounds it does not matter (you can even print the table header once again if a misaligned tab happens). Best, ----------------------------------- Xiangdong Huang School of Software, Tsinghua University 黄向东 清华大学 软件学院 Boris Zhu <[email protected]> 于2020年1月11日周六 下午9:38写道: > Hi, > > The client get results by rows instead of columns. So it's difficult to > align results in one displayed table because we don't know the longest > result in one column. The original method is to set a very long fixed > length for a column. Obviously, the above method will cause unnecessary > spaces. I want to cache results in a client, and do you have another way? > > best wishes > Boris >
