{"id":47182,"date":"2022-11-07T19:49:35","date_gmt":"2023-01-23T07:54:05","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb\/"},"modified":"2024-04-28T23:32:00","modified_gmt":"2024-04-28T15:32:00","slug":"%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb\/","title":{"rendered":"\u7ea2\u79fb\u6d41\u5f0f\u6444\u5165\u7684\u4f7f\u7528\u65b9\u6cd5\u6c47\u603b"},"content":{"rendered":"<p>\u8fd9\u662fAWS Analytics Advent Calendar 2022\u7684\u7b2c\u516b\u7bc7\u6587\u7ae0\u3002<\/p>\n<h1>\u9996\u5148<\/h1>\n<p>AWS re:Invent 2022 \u53c2\u52a0\u4f1a\u8bae\u4e0a\uff0c\u5ba3\u5e03\u4e86 Redshift \u7684\u6d41\u5f0f\u6570\u636e\u5bfc\u5165\u529f\u80fd\u7684 GA \u7248\u672c\u3002\u6d41\u5f0f\u6570\u636e\u5bfc\u5165\u662f\u6307\u53ef\u4ee5\u76f4\u63a5\u4ece Amazon Kinesis Data Streams \u548c Amazon Managed Streaming for Apache Kafka (MSK) \u5b9e\u65f6\u6295\u5165\u6570\u636e\u5230 Redshift \u7684\u529f\u80fd\u3002<\/p>\n<p>\u5728\u6b64\u529f\u80fd\u63a8\u51fa\u4e4b\u524d\uff0c\u8981\u5b9e\u73b0\u5728 Redshift \u4e0a\u5b9e\u65f6\u5bfc\u5165\u6570\u636e\uff0c\u9700\u8981\u4f7f\u7528 Amazon Kinesis Data Firehose \u5148\u5c06\u6570\u636e\u6682\u5b58\u5230 S3 \u4e2d\uff0c\u7136\u540e\u9010\u4e2a\u4f7f\u7528 Redshift \u7684COPY\u8bed\u53e5\u8fdb\u884c\u5bfc\u5165\u3002\u8fd9\u9700\u8981\u5b9e\u73b0\u548c\u64cd\u4f5c\u5404\u79cd\u590d\u6742\u7684\u673a\u5236\uff0c\u6bd4\u5982\u9010\u4e2a\u6267\u884cCOPY\u8bed\u53e5\u3001\u6392\u9664\u5df2\u52a0\u8f7d\u5230S3\u4e0a\u7684\u6587\u4ef6\u7b49\u7b49\u3002<\/p>\n<p>\u901a\u8fc7\u8fd9\u4e2a\u529f\u80fd\uff0c\u53ef\u4ee5\u6446\u8131\u8fd9\u4e9b\u5b9e\u73b0\u548c\u64cd\u4f5c\u7684\u9ebb\u70e6\uff0c\u5e76\u4e14\u80fd\u591f\u4ee5\u66f4\u63a5\u8fd1\u5b9e\u65f6\u7684\u65b0\u9c9c\u5ea6\u6295\u5165\u6570\u636e\uff0c\u751a\u81f3\u6bd4\u4ee5\u5f80\u7684\u65b9\u6cd5\u66f4\u5feb\u901f\u3002<\/p>\n<p>\u672c\u6587\u4e2d\u5c06\u603b\u7ed3\u4f7f\u7528Amazon Kinesis Data Streams\u8fdb\u884c\u6d41\u5f0f\u6570\u636e\u6444\u53d6\u65f6\u7684\u57fa\u672c\u7528\u6cd5\u548c\u6ce8\u610f\u4e8b\u9879\uff0c\u9488\u5bf9\u7684\u662f\u5df2\u542f\u7528Redshift\u7684\u60c5\u51b5\u3002<\/p>\n<h1>2. \u5982\u4f55\u4f7f\u7528<\/h1>\n<p>\u4ee5\u4e0b\u662f\u5927\u81f4\u7684\u4f7f\u7528\u65b9\u6cd5\uff1a<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u7ed9\u4e0e\u4e0eRedshift\u96c6\u7fa4\u5173\u8054\u7684IAM\u89d2\u8272\u5bf9Amazon Kinesis Data Streams\u6d41\u7684\u8bbf\u95ee\u6743\u9650<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5728Redshift\u4e0a\u521b\u5efa\u7528\u4e8e\u8bfb\u53d6\u6d41\u6570\u636e\u7684Materialized View<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u5b9a\u671f\u66f4\u65b0Materialized View\u4ee5\u4ece\u6d41\u4e2d\u83b7\u53d6\u6570\u636e<\/ol>\n<h2>1. \u6388\u4e88\u8bbf\u95ee\u6743\u9650<\/h2>\n<p>\u4e3a\u4e86\u8bbf\u95ee Redshift \u5230 Amazon Kinesis Data Streams \u7684\u6d41\uff0c\u8bf7\u5c06\u4e0e Redshift \u96c6\u7fa4\u5173\u8054\u7684 IAM \u89d2\u8272\u6388\u4e88\u5bf9 Kinesis \u7684\u8bbf\u95ee\u6743\u9650\u7684 IAM \u7b56\u7565\u9644\u52a0\u5230 Redshift\u3002IAM \u7b56\u7565\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code>{\r\n    \"Version\": \"2012-10-17\",\r\n    \"Statement\": [\r\n        {\r\n            \"Sid\": \"ReadStream\",\r\n            \"Effect\": \"Allow\",\r\n            \"Action\": [\r\n                \"kinesis:DescribeStreamSummary\",\r\n                \"kinesis:GetShardIterator\",\r\n                \"kinesis:GetRecords\",\r\n                \"kinesis:DescribeStream\"\r\n            ],\r\n            \"Resource\": \"arn:aws:kinesis:*:0123456789:stream\/*\" \u2190\u3053\u3053\u306b\u8aad\u307f\u8fbc\u307f\u5143\u306e stream \u306e ARN \u3092\u8a18\u8f09\u3059\u308b\r\n        },\r\n        {\r\n            \"Sid\": \"ListStream\",\r\n            \"Effect\": \"Allow\",\r\n            \"Action\": [\r\n                \"kinesis:ListStreams\",\r\n                \"kinesis:ListShards\"\r\n            ],\r\n            \"Resource\": \"*\"\r\n        }\r\n    ]\r\n}\r\n<\/code><\/pre>\n<h2>\u521b\u5efa\u6750\u6599\u5316\u89c6\u56fe<\/h2>\n<p>\u5728\u521b\u5efa Materialized View \u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd Redshift \u96c6\u7fa4\u548c Amazon Kinesis \u6570\u636e\u6d41\u4e4b\u95f4\u53ef\u4ee5\u8fdb\u884c\u7f51\u7edc\u901a\u4fe1\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u5982\u679c\u96c6\u7fa4\u6240\u5c5e\u7684 VPC \u7684\u5b50\u7f51\u7ec4\u53ef\u4ee5\u901a\u8fc7 Internet Gateway \u6216 NAT Gateway \u8bbf\u95ee\u4e92\u8054\u7f51\uff0c\u90a3\u4e48\u5373\u4f7f\u901a\u8fc7\u4e92\u8054\u7f51\u4e5f\u662f\u53ef\u4ee5\u7684\uff0c\u9700\u8981\u786e\u4fdd\u8fd9\u4e00\u70b9\u3002\u53e6\u5916\uff0c\u5982\u679c\u5e0c\u671b\u5728 AWS \u5185\u90e8\u7684\u7f51\u7edc\u4e0a\u5c01\u95ed\uff0c\u9700\u8981\u4f7f\u7528 Kinesis interface VPC Endpoint\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u521b\u5efa interface VPC Endpoint\u3002<\/p>\n<h3>\u521b\u5efa VPC \u7ec8\u7aef\u8282\u70b9<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d7d3d913a08637a69f3c2\/13-0.jpeg\" alt=\"Screen Shot 2022-12-06 at 18.25.55 copy.jpg\" \/><\/div>\n<p>\u4ee5\u4e0b\u662f\u91cd\u70b9\u5185\u5bb9\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Amazon Kinesis Data Streams \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e Endpoint \u306a\u306e\u3067\u30b5\u30fc\u30d3\u30b9\u3068\u3057\u3066 kinesis-streams \u3092\u9078\u629e<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">VPC \u306f Redshift \u306e\u30af\u30e9\u30b9\u30bf\u30fc\u304c\u914d\u7f6e\u3055\u308c\u3066\u3044\u308b\u5834\u6240\u3092\u9078\u629e<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b5\u30d6\u30cd\u30c3\u30c8\u306f\u30af\u30e9\u30b9\u30bf\u30fc\u304c\u914d\u7f6e\u3055\u308c\u3066\u3044\u308b\u30b5\u30d6\u30cd\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306b\u542b\u307e\u308c\u308b\u30b5\u30d6\u30cd\u30c3\u30c8\u3092\u9078\u629e<\/ul>\n<\/li>\n<\/ul>\n<p>\u30b5\u30d6\u30cd\u30c3\u30c8\u30b0\u30eb\u30fc\u30d7\u306b\u3064\u3044\u3066\u306e\u8a73\u7d30\u306f Managing cluster subnet groups using the console \u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n<h3>\u521b\u5efa\u7269\u5316\u89c6\u56fe<\/h3>\n<p>\u7528Redshift\u67e5\u8be2\u7f16\u8f91\u5668\uff08\u67e5\u8be2\u7f16\u8f91\u5668v2\uff09\u521b\u5efa\u5916\u90e8SCHEMA\u3002<\/p>\n<pre class=\"post-pre\"><code>CREATE EXTERNAL SCHEMA {\u5916\u90e8 SCHEMA \u540d}\r\nFROM KINESIS\r\nIAM_ROLE 'iam-role-arn'; # \u30c7\u30d5\u30a9\u30eb\u30c8 IAM \u30ed\u30fc\u30eb\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f IAM_ROLE default \u3067\u3082\u53ef\r\n<\/code><\/pre>\n<p>\u4e4b\u540e\uff0c\u6211\u4f1a\u521b\u5efa\u4e00\u4e2aMaterialized View\u3002<\/p>\n<pre class=\"post-pre\"><code>CREATE MATERIALIZED VIEW {VIEW \u540d} AS\r\nSELECT\r\n... # \u3053\u3053\u3067\u30c7\u30fc\u30bf\u306e\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u884c\u3046\r\nFROM {\u5916\u90e8 SCHEMA \u540d}.{stream \u540d};\r\n<\/code><\/pre>\n<p>\u7531\u4e8e{\u6d41\u540d}\u4e2d\u5305\u542b\u4ee5\u4e0b\u5143\u6570\u636e\uff0c\u53ef\u4ee5\u5229\u7528\u8fd9\u4e9b\u5143\u6570\u636e\u5c06\u5176\u6620\u5c04\u5230\u8868\u7684\u5217\u4e0a\u3002<\/p>\n<div>\n<div class=\"post-table\">\u30e1\u30bf\u30c7\u30fc\u30bf\u540d\u578b\u8aac\u660eapproximate_arrival_timestampTIMESTAMP\u5404\u30ec\u30b3\u30fc\u30c9\u304c Kinesis stream \u306b\u6295\u5165\u3055\u308c\u305f\u304a\u304a\u3088\u305d\u306e\u6642\u9593partition_keyVARCHAR(256)Kinesis stream \u306b\u6295\u5165\u3059\u308b\u6642\u306b\u6307\u5b9a\u3057\u305f partition_keyshard_idCHAR(20)Kinesis stream \u5185\u306e shard \u306e idsequence_numberVARCHAR(128)shard \u5185\u3067\u4e00\u610f\u306e\u5024\u3067\u3001\u6642\u9593\u3068\u3068\u3082\u306b\u5897\u52a0kinesis_dataVARBYTE(1024000)Kinesis stream \u306b\u6295\u5165\u3055\u308c\u305f\u5b9f\u30c7\u30fc\u30bfrefresh_timeTIMESTAMPMaterialized View \u304c REFRESH \u3092\u958b\u59cb\u3057\u305f\u6642\u9593 (= Redshift \u306b\u53d6\u308a\u8fbc\u307f\u3092\u958b\u59cb\u3057\u305f\u6642\u9593)<\/div>\n<\/div>\n<p>\u7531\u4e8e kinesis_data \u88ab\u4fdd\u5b58\u4e3a\u4e8c\u8fdb\u5236\u6570\u636e\uff0c\u6240\u4ee5\u5728\u5c06\u5176\u6620\u5c04\u5230\u5217\u65f6\u9700\u8981\u4f7f\u7528 from_varbyte \u51fd\u6570\u5c06\u5176\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002\u6b64\u5916\uff0c\u7531\u4e8e\u8f93\u5165\u5230\u6d41\u4e2d\u7684\u6570\u636e\u901a\u5e38\u662f\u4ee5 json \u6216 csv \u683c\u5f0f\u4e3a\u4e3b\uff0c\u56e0\u6b64\u53ef\u4ee5\u4f7f\u7528 json_extract_path_text \u51fd\u6570\u6216 split_part \u51fd\u6570\u5c06\u5176\u62c6\u5206\u6210\u5217\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n<pre class=\"post-pre\"><code>json_extract_path_text(from_varbyte(kinesis_data, 'utf-8'), '{\u30d5\u30a3\u30fc\u30eb\u30c9\u540d}')::int as {\u30ab\u30e9\u30e0\u540d}\r\n<\/code><\/pre>\n<h2>\u66f4\u65b0\u6750\u6599\u5316\u89c6\u56fe\u4ee5\u5bfc\u5165\u6570\u636e\u3002<\/h2>\n<p>\u901a\u8fc7\u6267\u884c\u4ee5\u4e0b\u67e5\u8be2\uff0c\u66f4\u65b0\u5e76\u5bfc\u5165\u6570\u636e\u81f3Materialized View\u3002<\/p>\n<pre class=\"post-pre\"><code>REFRESH MATERIALIZED VIEW {VIEW \u540d};\r\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u67e5\u8be2\u53ea\u4f1a\u5bfc\u5165\u81ea\u4e0a\u6b21\u66f4\u65b0\u65f6\u70b9\u5230\u5f53\u524d\u66f4\u65b0\u65f6\u70b9\u6240\u589e\u52a0\u7684\u6570\u636e\u3002\u5df2\u7ecf\u5bfc\u5165\u7684\u6570\u636e\u5c06\u4e0d\u4f1a\u88ab\u66f4\u65b0\u3002\u53e6\u5916\uff0c\u5982\u679c\u662f\u521d\u59cb\u66f4\u65b0\u65f6\u523b\u6ca1\u6709\u4e0a\u6b21\u66f4\u65b0\u65f6\u523b\uff0c\u5c06\u4f1a\u5bfc\u5165\u5b58\u50a8\u5728\u6d41\u4e2d\u7684\u6240\u6709\u6570\u636e\u3002\u56e0\u6b64\uff0c\u5982\u679c\u5220\u9664\u4e86\u89c6\u56fe\uff0c\u53ea\u6709\u5f53\u524d\u4fdd\u5b58\u5728\u6d41\u4e2d\u7684\u6570\u636e\u4f1a\u88ab\u5bfc\u5165\u3002\u6d41\u7684\u4fdd\u7559\u671f\u9650\u8fc7\u671f\u7684\u6570\u636e\u5c06\u65e0\u6cd5\u518d\u6b21\u5bfc\u5165\u3002<\/p>\n<h3>\u5b9a\u671f\u66f4\u65b0\u7684\u7269\u5316\u89c6\u56fe<\/h3>\n<p>\u9664\u975e\u4f7f\u7528REFRESH\u8fdb\u884c\u66f4\u65b0\uff0c\u5426\u5219\u6570\u636e\u5c06\u65e0\u6cd5\u5bfc\u5165\uff0c\u4e3a\u4e86\u5b9e\u65f6\u5bfc\u5165\u6570\u636e\uff0c\u9700\u8981\u9891\u7e41\u4e14\u5b9a\u671f\u5730\u8fdb\u884c\u66f4\u65b0\u3002\u5728\u914d\u7f6e\u597d\u7684Redshift\u96c6\u7fa4\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u67e5\u8be2\u8ba1\u5212\u8bbe\u7f6e\u6765\u5b9a\u65f6\u6267\u884cREFRESH\u8bed\u53e5\u3002\u7136\u800c\uff0c\u8be5\u8c03\u5ea6\u5668\u7684\u6700\u5c0f\u5355\u4f4d\u662f\u5206\u949f\uff0c\u5e76\u4e14\u5728\u6267\u884c\u65f6\u4f1a\u4f7f\u7528\u8ba1\u7b97\u8d44\u6e90\u3002\u56e0\u6b64\uff0c\u66f4\u65b0\u9891\u7387\u9700\u8981\u8003\u8651\u5b9e\u65f6\u9700\u6c42\u548c\u8ba1\u7b97\u8d44\u6e90\u7684\u53ef\u63a5\u53d7\u7a0b\u5ea6\u6765\u786e\u5b9a\u3002<\/p>\n<h4>12\/08\u66f4\u65b0<\/h4>\n<p>\u5728\u521b\u5efa\u7269\u5316\u89c6\u56fe\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u7269\u5316\u89c6\u56fe\u7684\u81ea\u52a8\u66f4\u65b0\u529f\u80fd\uff0c\u65e0\u9700\u4e3b\u52a8\u6267\u884c REFRESH \u64cd\u4f5c\u5373\u53ef\u5b9e\u73b0\u81ea\u52a8\u66f4\u65b0\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u521b\u5efa\u7269\u5316\u89c6\u56fe\u65f6\u9700\u8981\u6dfb\u52a0 AUTO REFRESH YES\u3002<\/p>\n<pre class=\"post-pre\"><code>CREATE MATERIALIZED VIEW {VIEW \u540d} AUTO REFRESH YES AS\r\nSELECT\r\n... # \u3053\u3053\u3067\u30c7\u30fc\u30bf\u306e\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u884c\u3046\r\nFROM {\u5916\u90e8 SCHEMA \u540d}.{stream \u540d};\r\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u529f\u80fd\u53ef\u4ee5\u4e0e\u624b\u52a8\u5237\u65b0\u540c\u65f6\u4f7f\u7528\u3002<\/p>\n<p>\u6ce8\u610f\u70b9\u662f\uff0c\u7531\u4e8e\u81ea\u52a8\u66f4\u65b0\u662f\u7531AWS\u4e00\u65b9\u7684\u903b\u8f91\u6765\u6267\u884c\u7684\uff0c\u56e0\u6b64\u65e0\u6cd5\u901a\u8fc7\u81ea\u8eab\u7684\u903b\u8f91\u6765\u63a7\u5236\u66f4\u65b0\u3002\u636e\u6211\u4eb2\u8eab\u4f7f\u7528\u7684\u7ecf\u9a8c\uff0c\u5373\u4f7f\u6570\u636e\u88ab\u8f93\u5165\u6d41\u4e2d\uff0c\u66f4\u65b0\u4e5f\u4e0d\u4f1a\u7acb\u5373\u751f\u6548\uff08\u53ef\u80fd\u9700\u8981\u51e0\u5206\u949f\u624d\u4f1a\u66f4\u65b0\uff09\u3002\u5982\u679c\u9700\u8981\u9891\u7e41\u66f4\u65b0\uff0c\u53ef\u80fd\u9700\u8981\u624b\u52a8\u8fdb\u884c\u5237\u65b0\u3002<\/p>\n<h1>\u603b\u7ed3<\/h1>\n<p>\u6211\u5df2\u7ecf\u89e3\u91ca\u4e86\u5728\u7ecf\u8fc7\u914d\u7f6e\u7684Redshift\u96c6\u7fa4\u4e0a\u4f7f\u7528\u6d41\u6570\u636e\u6444\u53d6\u7684\u57fa\u672c\u65b9\u6cd5\u3002\u867d\u7136Redshift Serverless\u4e5f\u53ef\u4ee5\u4f7f\u7528\u6d41\u6570\u636e\u6444\u53d6\uff0c\u5728\u66f4\u65b0\u65f6\u6d88\u8017\u8d44\u6e90\u5355\u4f4d(RPU)\u53ef\u80fd\u4f1a\u88ab\u7528\u6389\uff0c\u5e76\u4e14\u65e0\u6cd5\u4f7f\u7528\u67e5\u8be2\u8c03\u5ea6\u8bbe\u7f6e\uff0c\u6240\u4ee5\u5982\u679c\u4e0d\u4f7f\u7528Materialized View\u7684\u81ea\u52a8\u66f4\u65b0\u529f\u80fd\uff0c\u5219\u9700\u8981\u81ea\u884c\u51c6\u5907\u4e00\u79cd\u66f4\u65b0Materialized View\u7684\u65b9\u6cd5\u3002<\/p>\n<h1>\u5f15\u7528\u8d44\u6599<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/docs.aws.amazon.com\/redshift\/latest\/dg\/materialized-view-streaming-ingestion.html<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/docs.aws.amazon.com\/redshift\/latest\/dg\/materialized-view-streaming-ingestion-getting-started.html<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/docs.aws.amazon.com\/redshift\/latest\/dg\/materialized-view-refresh.html#materialized-view-auto-refresh<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">https:\/\/aws.amazon.com\/jp\/blogs\/aws\/new-for-amazon-redshift-general-availability-of-streaming-ingestion-for-kinesis-data-streams-and-managed-streaming-for-apache-kafka\/<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u662fAWS Analytics Advent Calendar 2022\u7684\u7b2c\u516b\u7bc7\u6587\u7ae0\u3002 \u9996\u5148 AWS re:I [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-47182","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7ea2\u79fb\u6d41\u5f0f\u6444\u5165\u7684\u4f7f\u7528\u65b9\u6cd5\u6c47\u603b - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u7ea2\u79fb\u6d41\u5f0f\u6444\u5165\u7684\u4f7f\u7528\u65b9\u6cd5\u6c47\u603b\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7ea2\u79fb\u6d41\u5f0f\u6444\u5165\u7684\u4f7f\u7528\u65b9\u6cd5\u6c47\u603b\" \/>\n<meta property=\"og:description\" content=\"\u8fd9\u662fAWS Analytics Advent Calendar 2022\u7684\u7b2c\u516b\u7bc7\u6587\u7ae0\u3002 \u9996\u5148 AWS re:I [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u7ea2\u79fb\u6d41\u5f0f\u6444\u5165\u7684\u4f7f\u7528\u65b9\u6cd5\u6c47\u603b\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-23T07:54:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T15:32:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d7d3d913a08637a69f3c2\/13-0.jpeg\" \/>\n<meta name=\"author\" content=\"\u65b0, \u97f5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u65b0, \u97f5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb\/\",\"name\":\"\u7ea2\u79fb\u6d41\u5f0f\u6444\u5165\u7684\u4f7f\u7528\u65b9\u6cd5\u6c47\u603b - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-01-23T07:54:05+00:00\",\"dateModified\":\"2024-04-28T15:32:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7ea2\u79fb\u6d41\u5f0f\u6444\u5165\u7684\u4f7f\u7528\u65b9\u6cd5\u6c47\u603b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9\",\"name\":\"\u65b0, \u97f5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g\",\"caption\":\"\u65b0, \u97f5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u7ea2\u79fb\u6d41\u5f0f\u6444\u5165\u7684\u4f7f\u7528\u65b9\u6cd5\u6c47\u603b - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u7ea2\u79fb\u6d41\u5f0f\u6444\u5165\u7684\u4f7f\u7528\u65b9\u6cd5\u6c47\u603b\/","og_locale":"zh_CN","og_type":"article","og_title":"\u7ea2\u79fb\u6d41\u5f0f\u6444\u5165\u7684\u4f7f\u7528\u65b9\u6cd5\u6c47\u603b","og_description":"\u8fd9\u662fAWS Analytics Advent Calendar 2022\u7684\u7b2c\u516b\u7bc7\u6587\u7ae0\u3002 \u9996\u5148 AWS re:I [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u7ea2\u79fb\u6d41\u5f0f\u6444\u5165\u7684\u4f7f\u7528\u65b9\u6cd5\u6c47\u603b\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-01-23T07:54:05+00:00","article_modified_time":"2024-04-28T15:32:00+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d7d3d913a08637a69f3c2\/13-0.jpeg"}],"author":"\u65b0, \u97f5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u65b0, \u97f5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb\/","name":"\u7ea2\u79fb\u6d41\u5f0f\u6444\u5165\u7684\u4f7f\u7528\u65b9\u6cd5\u6c47\u603b - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-01-23T07:54:05+00:00","dateModified":"2024-04-28T15:32:00+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u7ea2\u79fb\u6d41\u5f0f\u6444\u5165\u7684\u4f7f\u7528\u65b9\u6cd5\u6c47\u603b"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/4ba4019495123db3038fd0809e6959c9","name":"\u65b0, \u97f5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d484b6c6e4ae82e8a9efea989e1d2af46d9b6ef128101e63b18f559fca0ae627?s=96&d=mm&r=g","caption":"\u65b0, \u97f5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yunxin\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ba%a2%e7%a7%bb%e6%b5%81%e5%bc%8f%e6%91%84%e5%85%a5%e7%9a%84%e4%bd%bf%e7%94%a8%e6%96%b9%e6%b3%95%e6%b1%87%e6%80%bb\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=47182"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47182\/revisions"}],"predecessor-version":[{"id":65221,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/47182\/revisions\/65221"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=47182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=47182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=47182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}