rdblue commented on a change in pull request #19:
URL: https://github.com/apache/iceberg-docs/pull/19#discussion_r796003597



##########
File path: landing-page/content/services/time-travel.html
##########
@@ -0,0 +1,38 @@
+---
+Title: Time Travel and Rollback
+Description: Time-travel enables reproducible queries that use exactly the 
same table snapshot, or lets users easily examine changes. Version rollback 
allows users to quickly correct problems by resetting tables to a good state.
+LearnMore: /docs/latest/spark-queries/#time-travel
+Category: Post
+Draft: false
+weight: 400
+---
+<!--
+ - 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.
+ -->
+<div class="termynal-container">
+    <div id="termynal-time-travel" data-termynal data-ty-startDelay="600" 
data-ty-typeDelay="20" data-ty-lineDelay="500">
+        <span data-ty="input" data-ty-cursor="▋" 
data-ty-prompt="scala>">spark.read.table("taxis").count()</span>
+        <span data-ty>2,853,020</span>
+        <span data-ty="input" data-ty-cursor="▋" data-ty-prompt="scala>">val 
ONE_DAY_MS=86400000;</span>
+        <span data-ty="input" data-ty-cursor="▋" data-ty-prompt="scala>">val 
NOW=System.currentTimeMillis()</span>
+        <span data-ty="input" data-ty-cursor="▋" 
data-ty-prompt="scala>">(spark</span>
+        <span data-ty="input" data-ty-cursor="▋" data-ty-prompt="">.read</span>
+        <span data-ty="input" data-ty-cursor="▋" 
data-ty-prompt="">.option("as-of-timestamp", NOW_MS - ONE_DAY_MS)</span>

Review comment:
       Oh, this also fixes the slight problem that you used NOW and NOW_MS




-- 
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to