Skip to content

Commit ad40321

Browse files
committed
CT: add demo files for full TPC-H (SF=10)
1 parent 9a9c720 commit ad40321

File tree

1 file changed

+16
-3
lines changed
  • frontend/packages/insights/src

1 file changed

+16
-3
lines changed

frontend/packages/insights/src/App.js

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import './App.css';
22
import React, {useState} from "react";
33
import 'bootstrap/dist/css/bootstrap.min.css';
4-
import {Button, Col, Container, Form, Modal, Navbar, Row} from 'react-bootstrap';
4+
import {Button, Col, Container, DropdownButton, Dropdown, Form, Modal, Navbar, Row} from 'react-bootstrap';
55
import {TraceOnlyView} from "./TraceOnlyView";
66
import {ProfilingView} from "./ProfilingView";
77
import {DebuggingView} from "./DebuggingView";
@@ -78,8 +78,21 @@ const App = () => {
7878
<h2>Demo Files</h2>
7979
<p style={{marginTop:"40px"}}>
8080

81-
<Button variant="outline-light" onClick={()=>handleDemoFile("tpch-22-sf10")}> TPC-H Q22, SF=10</Button>
82-
</p>
81+
<DropdownButton
82+
variant="outline-light"
83+
title="Select TPC-H Query (SF=10)"
84+
id="tpch-query-dropdown"
85+
>
86+
{Array.from({ length: 22 }, (_, i) => {
87+
const queryNumber = i + 1;
88+
const fileName = `tpch-${queryNumber}-sf10`;
89+
return (
90+
<Dropdown.Item key={queryNumber} onClick={() => handleDemoFile(fileName)}>
91+
TPC-H Q{queryNumber}
92+
</Dropdown.Item>
93+
);
94+
})}
95+
</DropdownButton> </p>
8396
</Col>
8497
</Row>
8598
</Container>

0 commit comments

Comments
 (0)