Join formatting and printing of the sql query results on JVM side.