drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] agozhiy commented on a change in pull request #1449: DRILL-6544: Timestamp value in Drill UI showed inconsistently with th…
Date Wed, 05 Sep 2018 16:22:42 GMT
agozhiy commented on a change in pull request #1449: DRILL-6544: Timestamp value in Drill UI
showed inconsistently with th…
URL: https://github.com/apache/drill/pull/1449#discussion_r215338388
 
 

 ##########
 File path: exec/java-exec/src/main/java/org/apache/drill/exec/util/VectorUtil.java
 ##########
 @@ -227,4 +233,69 @@ private static int getColumnWidth(int[] columnWidths, int columnIndex)
{
     return (columnWidths == null) ? DEFAULT_COLUMN_WIDTH
         : (columnWidths.length > columnIndex) ? columnWidths[columnIndex] : columnWidths[0];
   }
+
+  /**
+   * Formats ValueVector elements in accordance with the corresponding system/session options.
+   *
+   * @param value ValueVector element to format, not null
+   * @param minorType the minor type of the element, not null
+   * @param options the OptionManager instance, not null
+   * @return the formatted value, null if failed
+   */
+  public static String formatValueVectorElement(Object value, TypeProtos.MinorType minorType,
OptionManager options) {
 
 Review comment:
   Done. Added class ValueVectorElementFormatter.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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

Mime
View raw message