From 8f451e8eeb7be5433056d11e55e3279dec730354 Mon Sep 17 00:00:00 2001 From: Ryan Liang Date: Wed, 10 Apr 2024 18:31:21 -0700 Subject: [PATCH] Modify the mv creation options Co-authored-by: Sean Kao Signed-off-by: Ryan Liang --- .../repository/aws_waf/assets/create_mv-1.0.0.sql | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/server/adaptors/integrations/__data__/repository/aws_waf/assets/create_mv-1.0.0.sql b/server/adaptors/integrations/__data__/repository/aws_waf/assets/create_mv-1.0.0.sql index 54bb2ae6e4..5aef9c81bf 100644 --- a/server/adaptors/integrations/__data__/repository/aws_waf/assets/create_mv-1.0.0.sql +++ b/server/adaptors/integrations/__data__/repository/aws_waf/assets/create_mv-1.0.0.sql @@ -20,6 +20,9 @@ SELECT ja3Fingerprint AS `aws.waf.ja3Fingerprint` FROM {table_name} -; - -REFRESH MATERIALIZED VIEW mys3.default.{table_name}_mview \ No newline at end of file +WITH ( + auto_refresh = 'true', + checkpoint_location = '{s3_bucket_location}', + watermark_delay = '1 Minute', + extra_options = '{ "{table_name}": { "maxFilesPerTrigger": "10" }}' +); \ No newline at end of file