justinmclean commented on code in PR #5350:
URL: https://github.com/apache/gravitino/pull/5350#discussion_r1832247930
##########
clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListColumns.java:
##########
@@ -67,8 +67,12 @@ public void handle() {
String name = columns[i].name();
String dataType = columns[i].dataType().simpleString();
String comment = columns[i].comment();
- String nullable = columns[i].nullable() ? "null" : "";
- String autoIncrement = columns[i].autoIncrement() ? "auto" : "";
+ String nullable = columns[i].nullable() ? "true" : "false";
+ String autoIncrement = columns[i].autoIncrement() ? "true" : "false";
+
+ if (i == 0) {
+ all.append("name,datatype,comment,nullable,auto" +
System.lineSeparator());
+ }
Review Comment:
1. Not really, as you don't want to output the header if there is no data.
2. Sure I do that.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]