-
Notifications
You must be signed in to change notification settings - Fork 15
fix(TableInfo): update column table info #1056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4b8a113
to
68e8862
Compare
if (columnTable.Sharding?.HashSharding?.Columns) { | ||
const columns = columnTable.Sharding.HashSharding.Columns.join(', '); | ||
const content = `PARTITION BY HASH(${columns})`; | ||
|
||
columnTableGeneralInfo.push({ | ||
label: 'Partitioning', | ||
value: ( | ||
<Text variant="code-2" wordBreak="break-word"> | ||
{content} | ||
</Text> | ||
), | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'GroupReadIops', | ||
'GroupReadThroughput', | ||
'GroupWriteIops', | ||
'GroupWriteThroughput', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed fields, that we don't display, but they are not processed properly by TS
export const formatDateTime = (value?: number | string, defaultValue = '') => { | ||
const formattedData = dateTimeParse(Number(value))?.format('YYYY-MM-DD HH:mm'); | ||
|
||
return Number(value) > 0 && formattedData ? formattedData : defaultValue; | ||
return formattedData ?? defaultValue; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
68e8862
to
a881797
Compare
if (PathDescription?.TableStats) { | ||
const {DataSize, RowCount} = PathDescription.TableStats; | ||
|
||
overview.push( | ||
{ | ||
label: i18n('summary.data-size'), | ||
value: toFormattedSize(DataSize), | ||
}, | ||
{ | ||
label: i18n('summary.row-count'), | ||
value: formatNumber(RowCount), | ||
}, | ||
); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a881797
to
8366717
Compare
const content = `PARTITION BY HASH(${columns})`; | ||
|
||
columnTableGeneralInfo.push({ | ||
label: 'Partitioning', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i18n?
8366717
to
78d8953
Compare
First part of #885 (there are some things about column tables to clarify and finish)