diff --git a/catalog-rest-service/src/main/resources/ui/src/components/my-data-details/ProfilerTable.tsx b/catalog-rest-service/src/main/resources/ui/src/components/my-data-details/TableProfiler.tsx
similarity index 95%
rename from catalog-rest-service/src/main/resources/ui/src/components/my-data-details/ProfilerTable.tsx
rename to catalog-rest-service/src/main/resources/ui/src/components/my-data-details/TableProfiler.tsx
index 0a9859c521a..1a8bd7df1fa 100644
--- a/catalog-rest-service/src/main/resources/ui/src/components/my-data-details/ProfilerTable.tsx
+++ b/catalog-rest-service/src/main/resources/ui/src/components/my-data-details/TableProfiler.tsx
@@ -1,7 +1,7 @@
import classNames from 'classnames';
import React, { Fragment, useState } from 'react';
import { Table, TableProfile } from '../../generated/entity/data/table';
-import ProfilerGraph from './ProfilerGraph';
+import TableProfilerGraph from './TableProfilerGraph';
type Props = {
tableProfiles: Table['tableProfile'];
@@ -13,7 +13,7 @@ type ProfilerGraphData = Array<{
value: number;
}>;
-const ProfilerTable = ({ tableProfiles, columns }: Props) => {
+const TableProfiler = ({ tableProfiles, columns }: Props) => {
const [expandedColumn, setExpandedColumn] = useState<{
name: string;
isExpanded: boolean;
@@ -92,7 +92,7 @@ const ProfilerTable = ({ tableProfiles, columns }: Props) => {
{col.name}
- ({
@@ -104,7 +104,7 @@ const ProfilerTable = ({ tableProfiles, columns }: Props) => {
/>
|
- ({
@@ -116,7 +116,7 @@ const ProfilerTable = ({ tableProfiles, columns }: Props) => {
/>
|
- ({
@@ -131,7 +131,7 @@ const ProfilerTable = ({ tableProfiles, columns }: Props) => {
{col.max} |
{col.median} |
- ({
@@ -198,4 +198,4 @@ const ProfilerTable = ({ tableProfiles, columns }: Props) => {
);
};
-export default ProfilerTable;
+export default TableProfiler;
diff --git a/catalog-rest-service/src/main/resources/ui/src/components/my-data-details/ProfilerGraph.tsx b/catalog-rest-service/src/main/resources/ui/src/components/my-data-details/TableProfilerGraph.tsx
similarity index 90%
rename from catalog-rest-service/src/main/resources/ui/src/components/my-data-details/ProfilerGraph.tsx
rename to catalog-rest-service/src/main/resources/ui/src/components/my-data-details/TableProfilerGraph.tsx
index b472fb2dddd..02d2f62135d 100644
--- a/catalog-rest-service/src/main/resources/ui/src/components/my-data-details/ProfilerGraph.tsx
+++ b/catalog-rest-service/src/main/resources/ui/src/components/my-data-details/TableProfilerGraph.tsx
@@ -4,7 +4,7 @@ import { Area, AreaChart, Tooltip } from 'recharts';
type Props = {
data: Array<{ date: Date | undefined; value: number | undefined }>;
};
-const ProfilerGraph = ({ data }: Props) => {
+const TableProfilerGraph = ({ data }: Props) => {
const CustomTooltip = ({
active,
payload,
@@ -40,7 +40,7 @@ const ProfilerGraph = ({ data }: Props) => {
content={CustomTooltip}
cursor={{ stroke: '#FF4C3B', strokeWidth: 2 }}
offset={20}
- position={{ x: 20, y: 20 }}
+ position={{ x: 20, y: -40 }}
/>
{
);
};
-export default ProfilerGraph;
+export default TableProfilerGraph;
diff --git a/catalog-rest-service/src/main/resources/ui/src/pages/my-data-details/index.tsx b/catalog-rest-service/src/main/resources/ui/src/pages/my-data-details/index.tsx
index 2e50b66862f..d1843136b69 100644
--- a/catalog-rest-service/src/main/resources/ui/src/pages/my-data-details/index.tsx
+++ b/catalog-rest-service/src/main/resources/ui/src/pages/my-data-details/index.tsx
@@ -41,8 +41,8 @@ import PageContainer from '../../components/containers/PageContainer';
import Entitylineage from '../../components/dataset-lineage/EntityLineage';
import FrequentlyJoinedTables from '../../components/my-data-details/FrequentlyJoinedTables';
import ManageTab from '../../components/my-data-details/ManageTab';
-import ProfilerTable from '../../components/my-data-details/ProfilerTable';
import SchemaTab from '../../components/my-data-details/SchemaTab';
+import TableProfiler from '../../components/my-data-details/TableProfiler';
import {
getDatabaseDetailsPath,
getServiceDetailsPath,
@@ -90,7 +90,7 @@ const getProfilerRowDiff = (tableProfile: Table['tableProfile']) => {
if (tableProfile.length > 1) {
rowDiff = rowDiff - (tableProfile[1].rowCount || 0);
}
- retDiff = `${(rowDiff >= 0 ? '+' : '-') + rowDiff} rows ${dayDiff}`;
+ retDiff = `${(rowDiff >= 0 ? '+' : '') + rowDiff} rows ${dayDiff}`;
}
return retDiff;
@@ -555,7 +555,7 @@ const MyDataDetailsPage = () => {
)}
{activeTab === 2 && (
- col.name)}
tableProfiles={tableProfile}
/>
| |