-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71ee57e
commit 9d7585e
Showing
8 changed files
with
89 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- Create Database | ||
CREATE DATABASE IF NOT EXISTS &db_name; | ||
|
||
-- Create table to hold the records from Redpanda todo_list topic | ||
CREATE TABLE IF NOT EXISTS "&db_name".PUBLIC."&todo_list_table" ( | ||
RECORD_METADATA VARIANT, | ||
RECORD_CONTENT VARIANT | ||
); | ||
|
||
-- Enable Change Tracking | ||
ALTER TABLE"&db_name".PUBLIC."&todo_list_table" SET CHANGE_TRACKING = TRUE; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-- Create dynamic table to capture the records from todo_list_table | ||
CREATE OR REPLACE DYNAMIC TABLE &table_name | ||
TARGET_LAG = '1minute' | ||
WAREHOUSE = '&todo_warehouse' | ||
AS | ||
select | ||
record_metadata:key::string as key, | ||
record_content:title::string as title, | ||
record_content:description::text as description, | ||
record_content:category::string as category, | ||
record_content:status::boolean as status, | ||
record_metadata:CreateTime::bigint as tz | ||
from todo_list | ||
where record_metadata:topic = '&topic_name' | ||
ORDER BY key |