Skip to content

Commit

Permalink
Update data types in demos (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
emile-00 authored Dec 18, 2024
1 parent 0509fac commit b11453e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions demos/betting-behavior-analysis.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Once RisingWave is installed and deployed, run the three SQL queries below to se
bet_amount FLOAT,
result VARCHAR,
profit_loss FLOAT,
timestamp TIMESTAMP
timestamp TIMESTAMPTZ
);
```

Expand All @@ -62,7 +62,7 @@ Once RisingWave is installed and deployed, run the three SQL queries below to se
expected_return FLOAT,
current_odds FLOAT,
profit_loss FLOAT,
timestamp TIMESTAMP
timestamp TIMESTAMPTZ
);
```

Expand Down
4 changes: 2 additions & 2 deletions demos/inventory-management-forecast.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Once RisingWave is installed and deployed, run the two SQL queries below to set
CREATE TABLE inventory (
warehouse_id INT,
product_id INT,
timestamp TIMESTAMP,
timestamp TIMESTAMPTZ,
stock_level INT,
reorder_point INT,
location VARCHAR
Expand All @@ -41,7 +41,7 @@ Once RisingWave is installed and deployed, run the two SQL queries below to set
warehouse_id INT,
product_id INT,
quantity_sold INT,
timestamp TIMESTAMP
timestamp TIMESTAMPTZ
);
```

Expand Down
16 changes: 8 additions & 8 deletions demos/market-data-enrichment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ Once RisingWave is installed and deployed, run the two SQL queries below to set
```sql
CREATE TABLE raw_market_data (
asset_id INT,
timestamp TIMESTAMP,
price FLOAT,
timestamp TIMESTAMPTZ,
price NUMERIC,
volume INT,
bid_price FLOAT,
ask_price FLOAT
bid_price NUMERIC,
ask_price NUMERIC
);
```
2. The table `enrichment_data` contains external data that adds context to the raw market data. It includes additional metrics such as historical volatility, sector performance, and sentiment scores.
Expand All @@ -39,10 +39,10 @@ Once RisingWave is installed and deployed, run the two SQL queries below to set
CREATE TABLE enrichment_data (
asset_id INT,
sector VARCHAR,
historical_volatility FLOAT,
sector_performance FLOAT,
sentiment_score FLOAT,
timestamp TIMESTAMP
historical_volatility NUMERIC,
sector_performance NUMERIC,
sentiment_score NUMERIC,
timestamp TIMESTAMPTZ
);
```

Expand Down
4 changes: 2 additions & 2 deletions demos/market-trade-surveillance.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Once RisingWave is installed and deployed, run the two SQL queries below to set
CREATE TABLE trade_data (
trade_id INT,
asset_id INT,
timestamp TIMESTAMP,
timestamp TIMESTAMPTZ,
price NUMERIC,
volume INT,
buyer_id INT,
Expand All @@ -40,7 +40,7 @@ Once RisingWave is installed and deployed, run the two SQL queries below to set
```sql
CREATE TABLE market_data (
asset_id INT,
timestamp TIMESTAMP,
timestamp TIMESTAMPTZ,
bid_price NUMERIC,
ask_price NUMERIC,
price NUMERIC,
Expand Down
4 changes: 2 additions & 2 deletions demos/sports-risk-profit-analysis.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Once RisingWave is installed and deployed, run the two SQL queries below to set
position_id INT,
league VARCHAR,
position_name VARCHAR,
timestamp TIMESTAMP,
timestamp TIMESTAMPTZ,
stake_amount FLOAT,
expected_return FLOAT,
max_risk FLOAT,
Expand All @@ -47,7 +47,7 @@ Once RisingWave is installed and deployed, run the two SQL queries below to set
bookmaker VARCHAR,
market_price FLOAT,
volume INT,
timestamp TIMESTAMP
timestamp TIMESTAMPTZ
);
```

Expand Down

0 comments on commit b11453e

Please sign in to comment.