You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2019/10/10 02:48:15 UTC
[GitHub] [incubator-hudi] vinothchandar commented on a change in pull
request #945: [HUDI-296] Explore use of spotless to auto fix formatting
errors
vinothchandar commented on a change in pull request #945: [HUDI-296] Explore use of spotless to auto fix formatting errors
URL: https://github.com/apache/incubator-hudi/pull/945#discussion_r333308817
##########
File path: hudi-cli/src/main/java/org/apache/hudi/cli/HoodiePrintHelper.java
##########
@@ -52,19 +52,16 @@ public static String print(String[] header, String[][] rows) {
* @param rows List of rows
* @return Serialized form for printing
*/
- public static String print(TableHeader rowHeader,
- Map<String, Function<Object, String>> fieldNameToConverterMap,
- String sortByField, boolean isDescending, Integer limit, boolean headerOnly,
- List<Comparable[]> rows) {
+ public static String print(TableHeader rowHeader, Map<String, Function<Object, String>> fieldNameToConverterMap,
+ String sortByField, boolean isDescending, Integer limit, boolean headerOnly, List<Comparable[]> rows) {
if (headerOnly) {
return HoodiePrintHelper.print(rowHeader);
}
- Table table = new Table(rowHeader, fieldNameToConverterMap,
- Option.ofNullable(sortByField.isEmpty() ? null : sortByField),
- Option.ofNullable(isDescending),
- Option.ofNullable(limit <= 0 ? null : limit)).addAllRows(rows).flip();
+ Table table =
Review comment:
kind of dislike that we are wasting the first line.. Can we fix it so that we use line 62 as well?
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services