You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by ru...@apache.org on 2022/02/08 18:07:39 UTC

[iceberg-docs] 20/47: Adds graphic for time-travel section of splash page (#19)

This is an automated email from the ASF dual-hosted git repository.

russellspitzer pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-docs.git

commit 651bd25ca9b0263310549562b1bea5d122e8c89b
Author: Samuel Redai <43...@users.noreply.github.com>
AuthorDate: Mon Jan 31 11:56:32 2022 -0800

    Adds graphic for time-travel section of splash page (#19)
---
 landing-page/content/services/time-travel.html | 39 ++++++++++++++++++++++++++
 landing-page/static/css/landing-page.css       |  4 +++
 2 files changed, 43 insertions(+)

diff --git a/landing-page/content/services/time-travel.html b/landing-page/content/services/time-travel.html
new file mode 100644
index 0000000..92725c4
--- /dev/null
+++ b/landing-page/content/services/time-travel.html
@@ -0,0 +1,39 @@
+---
+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>">val YESTERDAY=NOW - ONE_DAY_MS</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", YESTERDAY)</span>
+        <span data-ty="input" data-ty-cursor="▋" data-ty-prompt="">.table("taxis")</span>
+        <span data-ty="input" data-ty-cursor="▋" data-ty-prompt="">.count())</span>
+        <span data-ty>2,798,371</span>
+    </div>
+</div>
diff --git a/landing-page/static/css/landing-page.css b/landing-page/static/css/landing-page.css
index 47e0cdc..f35b3b1 100644
--- a/landing-page/static/css/landing-page.css
+++ b/landing-page/static/css/landing-page.css
@@ -221,3 +221,7 @@ a.page-scroll {
   		display:block !important;
 	}
 }
+
+.termynal-container {
+    padding-top: 3rem;
+}