From https://github.com/facebook/presto/blob/master/presto-cli/src/main/java/com/facebook/presto/cli/AlignedTuplePrinter.java