You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by cw...@apache.org on 2019/05/01 19:29:01 UTC
[incubator-druid] branch master updated: Add is_overshadowed column
to segment table (#7555)
This is an automated email from the ASF dual-hosted git repository.
cwylie 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 ed2beb6 Add is_overshadowed column to segment table (#7555)
ed2beb6 is described below
commit ed2beb6ba5667c4652898ebcf2f01b931e34cbe1
Author: Qi Shu <sh...@gmail.com>
AuthorDate: Wed May 1 15:28:53 2019 -0400
Add is_overshadowed column to segment table (#7555)
---
web-console/src/views/segments-view.tsx | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/web-console/src/views/segments-view.tsx b/web-console/src/views/segments-view.tsx
index 1dd3b8a..b30f4c5 100644
--- a/web-console/src/views/segments-view.tsx
+++ b/web-console/src/views/segments-view.tsx
@@ -41,7 +41,7 @@ import {
import './segments-view.scss';
const tableColumns: string[] = ['Segment ID', 'Datasource', 'Start', 'End', 'Version', 'Partition',
- 'Size', 'Num rows', 'Replicas', 'Is published', 'Is realtime', 'Is available'];
+ 'Size', 'Num rows', 'Replicas', 'Is published', 'Is realtime', 'Is available', 'Is overshadowed'];
const tableColumnsNoSql: string[] = ['Segment ID', 'Datasource', 'Start', 'End', 'Version', 'Partition', 'Size'];
export interface SegmentsViewProps extends React.Props<any> {
@@ -78,6 +78,7 @@ interface SegmentQueryResultRow {
is_available: number;
is_published: number;
is_realtime: number;
+ is_overshadowed: number;
}
export class SegmentsView extends React.Component<SegmentsViewProps, SegmentsViewState> {
@@ -139,7 +140,8 @@ export class SegmentsView extends React.Component<SegmentsViewProps, SegmentsVie
num_replicas: -1,
is_available: -1,
is_published: -1,
- is_realtime: -1
+ is_realtime: -1,
+ is_overshadowed: -1
};
});
}));
@@ -179,7 +181,7 @@ export class SegmentsView extends React.Component<SegmentsViewProps, SegmentsVie
const totalQuerySize = (page + 1) * pageSize;
const queryParts = [
- `SELECT "segment_id", "datasource", "start", "end", "size", "version", "partition_num", "num_replicas", "num_rows", "is_published", "is_available", "is_realtime", "payload"`,
+ `SELECT "segment_id", "datasource", "start", "end", "size", "version", "partition_num", "num_replicas", "num_rows", "is_published", "is_available", "is_realtime", "is_overshadowed", "payload"`,
`FROM sys.segments`
];
@@ -352,6 +354,13 @@ export class SegmentsView extends React.Component<SegmentsViewProps, SegmentsVie
accessor: (row) => String(Boolean(row.is_available)),
Filter: makeBooleanFilter(),
show: !noSqlMode && tableColumnSelectionHandler.showColumn('Is available')
+ },
+ {
+ Header: 'Is overshadowed',
+ id: 'is_overshadowed',
+ accessor: (row) => String(Boolean(row.is_overshadowed)),
+ Filter: makeBooleanFilter(),
+ show: !noSqlMode && tableColumnSelectionHandler.showColumn('Is overshadowed')
}
]}
defaultPageSize={50}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org