fengjian428 commented on code in PR #6576:
URL: https://github.com/apache/hudi/pull/6576#discussion_r1039188644


##########
rfc/rfc-61/rfc-61.md:
##########
@@ -0,0 +1,240 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+# RFC-61: Snapshot view management
+
+
+## Proposers
+
+- @<proposer1 @fengjian428>
+
+## Approvers
+ - @<approver1 @xushiyan>
+ - @<approver2 @codope>
+
+## Status
+
+JIRA: [HUDI-4677](https://issues.apache.org/jira/browse/HUDI-4677)
+
+> Please keep the status updated in `rfc/README.md`.
+
+## Abstract
+
+For the snapshot view scenario, Hudi already provides two key features to 
support it:
+* Time travel: user provides a timestamp to query a specific snapshot view of 
a Hudi table
+* Savepoint/restore: "savepoint" saves the table as of the commit time so that 
it lets you restore the table to this savepoint at a later point in time if 
need be.
+but in this case, the user usually uses this to prevent cleaning snapshot view 
at a specific timestamp, hence, only clean unused files
+The situation is there some inconvenience for users if they use them directly
+
+Usually users incline to use a meaningful name instead of querying Hudi table 
with a timestamp, using the timestamp in SQL may lead to the wrong snapshot 
view being used. 
+for example, we can announce that a new tag of hudi table with 
table_nameYYYYMMDD was released, then the user can use this new table name to 
query.
+Savepoint is not designed for this "snapshot view" scenario in the beginning, 
it is designed for disaster recovery. 
+let's say a new snapshot view will be created every day, and it has 7 days 
retention, we should support lifecycle management on top of it.
+What this RFC plan to do is to let Hudi support release a snapshot view and 
lifecycle management out-of-box.
+
+## Background
+Introduce any much background context which is relevant or necessary to 
understand the feature and design choices.
+typical scenarios and benefits of snapshot view:
+1. Basic idea:
+![basic_design](basic_design.png)
+
+Create Snapshot view based on Hudi Savepoint
+    * Create Snapshot views periodically by time(date time/processing time)
+    * Use External Metastore(such as HMS) to store external view 
+
+Build periodic snapshots based on the time period required by the user
+These Shapshots are stored as partitions in the metadata management system

Review Comment:
   sorry, snapshots should be stored as tables, will correct it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to