Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,6 @@ CREATE OR REPLACE TABLE gift (gift VARCHAR);
INSERT INTO gift VALUES
('Croissant'), ('Donut'), ('Coffee'), ('Soda');

-- 行情 & 交易样例
CREATE OR REPLACE TABLE trades (symbol VARCHAR, time INT, price INT);
INSERT INTO trades VALUES
('AAPL', 100003, 101),
('AAPL', 100007, 103),
('MSFT', 100002, 99),
('TSLA', 100010, 200);

CREATE OR REPLACE TABLE quotes (symbol VARCHAR, time INT, bid INT, ask INT);
INSERT INTO quotes VALUES
('AAPL', 100000, 99, 102),
('AAPL', 100005, 100, 104),
('MSFT', 100001, 98, 101),
('NVDA', 100006, 150, 155);

-- ASOF 示例的物联网数据
CREATE OR REPLACE TABLE sensor_readings (
room VARCHAR,
Expand Down Expand Up @@ -117,29 +102,6 @@ gift
+-----------+
```

时间序列示例使用如下行情快照:

```text
trades
+--------+--------+-------+
| symbol | time | price |
+--------+--------+-------+
| AAPL | 100003 | 101 |
| AAPL | 100007 | 103 |
| MSFT | 100002 | 99 |
| TSLA | 100010 | 200 |
+--------+--------+-------+

quotes
+--------+--------+-----+-----+
| symbol | time | bid | ask |
+--------+--------+-----+-----+
| AAPL | 100000 | 99 | 102 |
| AAPL | 100005 | 100 | 104 |
| MSFT | 100001 | 98 | 101 |
| NVDA | 100006 | 150 | 155 |
+--------+--------+-----+-----+

sensor_readings
+-----------+---------------------+-------------+
| room | reading_time | temperature |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,6 @@ CREATE OR REPLACE TABLE gift (gift VARCHAR);
INSERT INTO gift VALUES
('Croissant'), ('Donut'), ('Coffee'), ('Soda');

-- Time-series market data
CREATE OR REPLACE TABLE trades (symbol VARCHAR, time INT, price INT);
INSERT INTO trades VALUES
('AAPL', 100003, 101),
('AAPL', 100007, 103),
('MSFT', 100002, 99),
('TSLA', 100010, 200);

CREATE OR REPLACE TABLE quotes (symbol VARCHAR, time INT, bid INT, ask INT);
INSERT INTO quotes VALUES
('AAPL', 100000, 99, 102),
('AAPL', 100005, 100, 104),
('MSFT', 100001, 98, 101),
('NVDA', 100006, 150, 155);

-- IoT-style readings for ASOF examples
CREATE OR REPLACE TABLE sensor_readings (
room VARCHAR,
Expand Down Expand Up @@ -117,29 +102,6 @@ gift
+-----------+
```

Time-series examples use the following market data snapshots:

```text
trades
+--------+--------+-------+
| symbol | time | price |
+--------+--------+-------+
| AAPL | 100003 | 101 |
| AAPL | 100007 | 103 |
| MSFT | 100002 | 99 |
| TSLA | 100010 | 200 |
+--------+--------+-------+

quotes
+--------+--------+-----+-----+
| symbol | time | bid | ask |
+--------+--------+-----+-----+
| AAPL | 100000 | 99 | 102 |
| AAPL | 100005 | 100 | 104 |
| MSFT | 100001 | 98 | 101 |
| NVDA | 100006 | 150 | 155 |
+--------+--------+-----+-----+

sensor_readings
+-----------+---------------------+-------------+
| room | reading_time | temperature |
Expand Down
Loading