@datarecce/ui 0.1.37 → 0.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RecceCheckContext-BOGmP80K.js → RecceCheckContext-BJprb2xR.js} +11 -17
- package/dist/RecceCheckContext-BJprb2xR.js.map +1 -0
- package/dist/{RecceCheckContext-CwUCo6AW.mjs → RecceCheckContext-DbZ7BdRy.mjs} +11 -17
- package/dist/RecceCheckContext-DbZ7BdRy.mjs.map +1 -0
- package/dist/api.d.mts +1 -1
- package/dist/{components-DQUwJlNQ.mjs → components-B6oaPB5f.mjs} +2 -3
- package/dist/components-B6oaPB5f.mjs.map +1 -0
- package/dist/{components-uVp0e4cH.js → components-DTLQ2djq.js} +2 -3
- package/dist/components-DTLQ2djq.js.map +1 -0
- package/dist/components.d.mts +1 -1
- package/dist/components.js +2 -2
- package/dist/components.mjs +2 -2
- package/dist/{hooks-CfZ4UBBF.js → hooks-cQsBXBd1.js} +2 -2
- package/dist/{hooks-CfZ4UBBF.js.map → hooks-cQsBXBd1.js.map} +1 -1
- package/dist/{hooks-C6Kma5ld.mjs → hooks-eaHm_yEp.mjs} +2 -2
- package/dist/{hooks-C6Kma5ld.mjs.map → hooks-eaHm_yEp.mjs.map} +1 -1
- package/dist/hooks.d.mts +1 -1
- package/dist/hooks.js +2 -2
- package/dist/hooks.mjs +2 -2
- package/dist/index-DvKRw-cR.d.ts.map +1 -1
- package/dist/{index-Cln_wUJL.d.mts → index-Dvs4GUdl.d.mts} +70 -70
- package/dist/{index-Cln_wUJL.d.mts.map → index-Dvs4GUdl.d.mts.map} +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/dist/theme.d.mts +1 -1
- package/dist/types.d.mts +1 -1
- package/package.json +1 -1
- package/recce-source/js/src/components/profile/ProfileDiffResultView.tsx +0 -2
- package/recce-source/js/src/components/query/QueryDiffResultView.tsx +0 -2
- package/recce-source/js/src/components/rowcount/RowCountDiffResultView.tsx +0 -1
- package/recce-source/js/src/components/rowcount/delta.test.ts +51 -0
- package/recce-source/js/src/components/rowcount/delta.ts +6 -1
- package/recce-source/js/src/components/schema/SchemaView.tsx +0 -1
- package/recce-source/js/src/components/valuediff/ValueDiffDetailResultView.tsx +0 -1
- package/recce-source/js/src/components/valuediff/ValueDiffResultView.tsx +0 -1
- package/recce-source/js/src/lib/dataGrid/generators/rowCountUtils.test.ts +3 -3
- package/recce-source/js/src/lib/dataGrid/generators/rowCountUtils.ts +1 -1
- package/dist/RecceCheckContext-BOGmP80K.js.map +0 -1
- package/dist/RecceCheckContext-CwUCo6AW.mjs.map +0 -1
- package/dist/components-DQUwJlNQ.mjs.map +0 -1
- package/dist/components-uVp0e4cH.js.map +0 -1
|
@@ -3930,13 +3930,14 @@ function toDataGrid(result, options) {
|
|
|
3930
3930
|
//#endregion
|
|
3931
3931
|
//#region recce-source/js/src/components/rowcount/delta.ts
|
|
3932
3932
|
function deltaPercentageString(base, current) {
|
|
3933
|
+
if (base === 0 && current !== 0) return "N/A";
|
|
3933
3934
|
if (base < current) {
|
|
3934
3935
|
const p = (current - base) / base * 100;
|
|
3935
3936
|
return `+${p >= .1 ? p.toFixed(1) : " <0.1 "}%`;
|
|
3936
3937
|
} else if (base > current) {
|
|
3937
3938
|
const p = (base - current) / base * 100;
|
|
3938
3939
|
return `-${p >= .1 ? p.toFixed(1) : " <0.1 "}%`;
|
|
3939
|
-
} else return "0
|
|
3940
|
+
} else return "0";
|
|
3940
3941
|
}
|
|
3941
3942
|
|
|
3942
3943
|
//#endregion
|
|
@@ -3949,7 +3950,7 @@ function deltaPercentageString(base, current) {
|
|
|
3949
3950
|
* Calculates the delta string for row count comparison
|
|
3950
3951
|
*/
|
|
3951
3952
|
function calculateDelta(base, current) {
|
|
3952
|
-
if (base !== null && current !== null) return base !== current ? deltaPercentageString(base, current) : "
|
|
3953
|
+
if (base !== null && current !== null) return base !== current ? deltaPercentageString(base, current) : "0";
|
|
3953
3954
|
if (base === current) return "N/A";
|
|
3954
3955
|
if (base === null) return "Added";
|
|
3955
3956
|
if (current === null) return "Removed";
|
|
@@ -5398,8 +5399,7 @@ const PrivateProfileDiffResultView = ({ run, viewOptions, onViewOptionsChanged }
|
|
|
5398
5399
|
resizable: true,
|
|
5399
5400
|
maxWidth: 800,
|
|
5400
5401
|
minWidth: 35
|
|
5401
|
-
}
|
|
5402
|
-
className: "rdg-light"
|
|
5402
|
+
}
|
|
5403
5403
|
})]
|
|
5404
5404
|
});
|
|
5405
5405
|
};
|
|
@@ -5474,8 +5474,7 @@ const PrivateProfileResultView = ({ run, viewOptions, onViewOptionsChanged }, re
|
|
|
5474
5474
|
resizable: true,
|
|
5475
5475
|
maxWidth: 800,
|
|
5476
5476
|
minWidth: 35
|
|
5477
|
-
}
|
|
5478
|
-
className: "rdg-light"
|
|
5477
|
+
}
|
|
5479
5478
|
})
|
|
5480
5479
|
});
|
|
5481
5480
|
};
|
|
@@ -5624,8 +5623,7 @@ const PrivateQueryDiffResultView = ({ run, onAddToChecklist, viewOptions, onView
|
|
|
5624
5623
|
resizable: true,
|
|
5625
5624
|
maxWidth: 800,
|
|
5626
5625
|
minWidth: 35
|
|
5627
|
-
}
|
|
5628
|
-
className: "rdg-light"
|
|
5626
|
+
}
|
|
5629
5627
|
})]
|
|
5630
5628
|
});
|
|
5631
5629
|
};
|
|
@@ -5756,8 +5754,7 @@ const PrivateQueryDiffJoinResultView = ({ run, viewOptions, onViewOptionsChanged
|
|
|
5756
5754
|
resizable: true,
|
|
5757
5755
|
maxWidth: 800,
|
|
5758
5756
|
minWidth: 35
|
|
5759
|
-
}
|
|
5760
|
-
className: "rdg-light"
|
|
5757
|
+
}
|
|
5761
5758
|
})]
|
|
5762
5759
|
});
|
|
5763
5760
|
};
|
|
@@ -5935,8 +5932,7 @@ function _RowCountGridView({ run, typeGuard, expectedType }, ref) {
|
|
|
5935
5932
|
},
|
|
5936
5933
|
columns: gridData.columns,
|
|
5937
5934
|
rows: gridData.rows,
|
|
5938
|
-
renderers: { noRowsFallback: /* @__PURE__ */ jsx(EmptyRowsRenderer, {}) }
|
|
5939
|
-
className: "rdg-light"
|
|
5935
|
+
renderers: { noRowsFallback: /* @__PURE__ */ jsx(EmptyRowsRenderer, {}) }
|
|
5940
5936
|
})
|
|
5941
5937
|
});
|
|
5942
5938
|
}
|
|
@@ -6537,8 +6533,7 @@ const PrivateValueDiffDetailResultView = ({ run, onAddToChecklist, viewOptions,
|
|
|
6537
6533
|
resizable: true,
|
|
6538
6534
|
maxWidth: 800,
|
|
6539
6535
|
minWidth: 35
|
|
6540
|
-
}
|
|
6541
|
-
className: "rdg-light"
|
|
6536
|
+
}
|
|
6542
6537
|
})]
|
|
6543
6538
|
});
|
|
6544
6539
|
};
|
|
@@ -6771,8 +6766,7 @@ function _ValueDiffResultView({ run }, ref) {
|
|
|
6771
6766
|
columns,
|
|
6772
6767
|
rows,
|
|
6773
6768
|
renderers: { noRowsFallback: /* @__PURE__ */ jsx(EmptyRowsRenderer, {}) },
|
|
6774
|
-
defaultColumnOptions: { resizable: true }
|
|
6775
|
-
className: "rdg-light"
|
|
6769
|
+
defaultColumnOptions: { resizable: true }
|
|
6776
6770
|
})
|
|
6777
6771
|
})]
|
|
6778
6772
|
});
|
|
@@ -7429,4 +7423,4 @@ const useRecceCheckContext = () => useContext(RecceCheckContext);
|
|
|
7429
7423
|
|
|
7430
7424
|
//#endregion
|
|
7431
7425
|
export { supportsHistogramDiff as $, TopKDiffForm as A, useToaster as At, LineageViewContext as B, findByRunType as C, selectUpstream as Ct, ValueDiffDetailResultView as D, Toaster as Dt, ValueDiffForm as E, ScreenshotBox as Et, RunToolbar as F, useClipBoardToast as G, useLineageViewContextSafe as H, EmptyRowsRenderer as I, ProfileDiffForm as J, mergeKeys as K, ScreenshotDataGrid as L, QueryResultView as M, QueryDiffResultView as N, TopKDiffResultView as O, ToasterProvider as Ot, ProfileDiffResultView as P, HistogramDiffForm as Q, createDataGridFromData as R, useRouteConfigSafe as S, selectDownstream as St, ValueDiffResultView as T, union as Tt, deltaPercentageString as U, useLineageViewContext as V, DiffText as W, HistogramChart as X, HistogramDiffResultView as Y, SquareIcon as Z, useAppLocationWithSearch as _, formatDuration as _t, RecceShareStateContextProvider as a, IconInfo as at, RouteConfigProvider as b, isLineageGraphNode as bt, RowCountStateContextProvider as c, LineageGraphContextProvider as ct, useRowCountStateContext as d, useRecceServerFlag as dt, useModelColumns_default as et, RecceActionContext as f, IdleTimeoutProvider as ft, useAppLocation as g, useRecceInstanceInfo as gt, navigateTo as h, useRecceInstanceContext as ht, useValueDiffAlertDialog_default as i, IconImport as it, RowCountDiffResultView as j, TopKSummaryList as k, toaster as kt, defaultSqlQuery as l, useLineageGraphContext as lt, useRecceActionContext as m, RecceInstanceInfoProvider as mt, useRecceCheckContext as n, IconEdit as nt, useRecceShareStateContext as o, IconSave as ot, RecceActionContextProvider as p, useIdleTimeout as pt, mergeKeysWithStatus as q, useCheckToast as r, IconExport as rt, RecceQueryContextProvider as s, IconSync as st, RecceCheckContextProvider as t, RunModal as tt, useRecceQueryContext as u, useRunsAggregated as ut, useAppNavigation as v, COLUMN_HEIGHT as vt, runTypeHasRef as w, toReactFlow as wt, useRouteConfig as x, layout as xt, useAppRoute as y, isLineageGraphColumnNode as yt, ColumnNameCell as z };
|
|
7432
|
-
//# sourceMappingURL=RecceCheckContext-
|
|
7426
|
+
//# sourceMappingURL=RecceCheckContext-DbZ7BdRy.mjs.map
|