jt2594838 commented on a change in pull request #738: [IOTDB-396] New query clause: disable align URL: https://github.com/apache/incubator-iotdb/pull/738#discussion_r366219463
########## File path: client/src/main/java/org/apache/iotdb/client/AbstractClient.java ########## @@ -297,13 +324,24 @@ private static void printColumnData(ResultSetMetaData resultSetMetaData, ResultS printf(formatValue, "null"); handleException(e); } - } else { + } + else if (align) { if (i == 2 && resultSetMetaData.getColumnName(2).equals(GROUPBY_DEVICE_COLUMN_NAME)) { printf("%" + deviceColumnLength + "s|", res.getString(i)); } else { printf(formatValue, res.getString(i)); } } + // for disable align clause + else { + if (res.getString(i * 2 - 2) == null) { Review comment: These "2"s appear frequently, I suggest replace them with a constant and add a comment for the constant to explain what column is skipped. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services