Skip to content

Commit 30fba82

Browse files
committed
Support restrictions
1 parent 8884a0d commit 30fba82

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frontend/packages/common/RelationalPlanViewer.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ const Expression = ({data}) => {
2222
if (data.type === "expression_leaf") {
2323
if (data.leaf_type === "column") {
2424
return <div style={{display: "inline"}}>{data.displayName}</div>
25+
}else if (data.leaf_type === "simple_column") {
26+
return <div style={{display: "inline"}}>{data.column}</div>
2527
} else if (data.leaf_type === "constant") {
2628
return <div style={{display: "inline"}}>{data.value}</div>
2729
} else if (data.leaf_type === "unknown") {
@@ -90,6 +92,9 @@ const Operator = ({data}) => {
9092
if (data.operator === "tablescan") {
9193
return <OperatorContainer heading={`\u2637\u2003 ${data.tablename}`}>
9294
<div><b>Table Size:</b> {data.tableSize}</div>
95+
{ data.restrictions && <div><b>Restrictions:</b> {data.restrictions.map((res) => <div><Expression data={res}/></div>)}</div>
96+
97+
}
9398
</OperatorContainer>
9499
} else if (data.operator === "selection") {
95100
return <OperatorContainer heading={`\u03c3\u2003 Selection`}>

0 commit comments

Comments
 (0)