You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by as...@apache.org on 2019/05/31 09:34:23 UTC

[incubator-druid] branch master updated: friendly printed arrays for json responses (#7805)

This is an automated email from the ASF dual-hosted git repository.

asdf2014 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 94b3591  friendly printed arrays for json responses (#7805)
94b3591 is described below

commit 94b359117136d43a756d626f85989d1f4dbc8682
Author: Clint Wylie <cw...@apache.org>
AuthorDate: Fri May 31 02:34:12 2019 -0700

    friendly printed arrays for json responses (#7805)
---
 web-console/src/components/null-table-cell/null-table-cell.tsx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/web-console/src/components/null-table-cell/null-table-cell.tsx b/web-console/src/components/null-table-cell/null-table-cell.tsx
index c8d6758..c3df14b 100644
--- a/web-console/src/components/null-table-cell/null-table-cell.tsx
+++ b/web-console/src/components/null-table-cell/null-table-cell.tsx
@@ -35,6 +35,8 @@ export class NullTableCell extends React.Component<NullTableCellProps, {}> {
     } else if (value !== '' && value != null) {
       if (timestamp) {
         return <span className="null-table-cell timestamp" title={value}>{new Date(value).toISOString()}</span>;
+      } else if (Array.isArray(value)) {
+        return `[${value.join(', ')}]`;
       } else {
         return value;
       }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org