From 8f546f65d1aa623e6d7588b6bc296f4a2affe8ae Mon Sep 17 00:00:00 2001 From: emile-00 <emilyle@singularity-data.com> Date: Thu, 12 Dec 2024 08:42:43 -0800 Subject: [PATCH] Update data types in demos --- demos/betting-behavior-analysis.mdx | 4 ++-- demos/inventory-management-forecast.mdx | 4 ++-- demos/market-data-enrichment.mdx | 16 ++++++++-------- demos/market-trade-surveillance.mdx | 4 ++-- demos/sports-risk-profit-analysis.mdx | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/demos/betting-behavior-analysis.mdx b/demos/betting-behavior-analysis.mdx index 5a1bbe00..5c906ed0 100644 --- a/demos/betting-behavior-analysis.mdx +++ b/demos/betting-behavior-analysis.mdx @@ -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 ); ``` @@ -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 ); ``` diff --git a/demos/inventory-management-forecast.mdx b/demos/inventory-management-forecast.mdx index df70a0b1..6423cd61 100644 --- a/demos/inventory-management-forecast.mdx +++ b/demos/inventory-management-forecast.mdx @@ -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 @@ -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 ); ``` diff --git a/demos/market-data-enrichment.mdx b/demos/market-data-enrichment.mdx index dba17cb4..cd858b9c 100644 --- a/demos/market-data-enrichment.mdx +++ b/demos/market-data-enrichment.mdx @@ -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. @@ -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 ); ``` diff --git a/demos/market-trade-surveillance.mdx b/demos/market-trade-surveillance.mdx index 691fb47a..cb9a3ae2 100644 --- a/demos/market-trade-surveillance.mdx +++ b/demos/market-trade-surveillance.mdx @@ -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, @@ -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, diff --git a/demos/sports-risk-profit-analysis.mdx b/demos/sports-risk-profit-analysis.mdx index 64dd7ddf..7b1f0437 100644 --- a/demos/sports-risk-profit-analysis.mdx +++ b/demos/sports-risk-profit-analysis.mdx @@ -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, @@ -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 ); ```