diff --git a/presto-ui/src/components/LivePlan.jsx b/presto-ui/src/components/LivePlan.jsx index 925e9b8752d68..32fde032ec7a8 100644 --- a/presto-ui/src/components/LivePlan.jsx +++ b/presto-ui/src/components/LivePlan.jsx @@ -206,7 +206,7 @@ export class LivePlan extends React.Component { }); } - static handleStageClick(stageCssId) { + static handleStageClick(stageCssId: any) { window.open("stage.html?" + stageCssId.target.__data__, '_blank'); } diff --git a/presto-ui/src/components/QueryOverview.jsx b/presto-ui/src/components/QueryOverview.jsx index b5b31ff59b78d..fa9de9d2ac5a9 100644 --- a/presto-ui/src/components/QueryOverview.jsx +++ b/presto-ui/src/components/QueryOverview.jsx @@ -153,6 +153,7 @@ type ResourceEstimates = { cpuTime?: string; peakMemory?: string; peakTaskMemory?: string; + [key: string]: string; } type SessionRepresentation = { @@ -1111,7 +1112,7 @@ export default function QueryOverview({ data, show }: { data: QueryData, show: b } renderedEstimates.push( - - {snakeCased + "=" + data.session.resourceEstimates[resource]}
+ - {snakeCased + "=" + estimates[resource]}
) } }