beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [beam] branch asf-site updated: Publishing website 2019/03/04 22:28:35 at commit 932e802
Date Mon, 04 Mar 2019 22:28:41 GMT
This is an automated email from the ASF dual-hosted git repository.

git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 9d2e911  Publishing website 2019/03/04 22:28:35 at commit 932e802
9d2e911 is described below

commit 9d2e9118af49b2d21e62d4b6069bf5a2bd23fbfb
Author: jenkins <builds@apache.org>
AuthorDate: Mon Mar 4 22:28:36 2019 +0000

    Publishing website 2019/03/04 22:28:35 at commit 932e802
---
 .../io/built-in/google-bigquery/index.html            | 19 ++++---------------
 1 file changed, 4 insertions(+), 15 deletions(-)

diff --git a/website/generated-content/documentation/io/built-in/google-bigquery/index.html
b/website/generated-content/documentation/io/built-in/google-bigquery/index.html
index 288ec39..1ed9948 100644
--- a/website/generated-content/documentation/io/built-in/google-bigquery/index.html
+++ b/website/generated-content/documentation/io/built-in/google-bigquery/index.html
@@ -813,21 +813,10 @@ two fields (source and quote) of type string.</p>
                     <span class="o">.</span><span class="na">setMode</span><span
class="o">(</span><span class="s">"REQUIRED"</span><span class="o">)));</span>
 </code></pre>
 </div>
-<div class="language-py highlighter-rouge"><pre class="highlight"><code><span
class="kn">from</span> <span class="nn">apache_beam.io.gcp.internal.clients</span>
<span class="kn">import</span> <span class="n">bigquery</span>
-
-<span class="n">table_schema</span> <span class="o">=</span> <span
class="n">bigquery</span><span class="o">.</span><span class="n">TableSchema</span><span
class="p">()</span>
-
-<span class="n">source_field</span> <span class="o">=</span> <span
class="n">bigquery</span><span class="o">.</span><span class="n">TableFieldSchema</span><span
class="p">()</span>
-<span class="n">source_field</span><span class="o">.</span><span
class="n">name</span> <span class="o">=</span> <span class="s">'source'</span>
-<span class="n">source_field</span><span class="o">.</span><span
class="nb">type</span> <span class="o">=</span> <span class="s">'STRING'</span>
-<span class="n">source_field</span><span class="o">.</span><span
class="n">mode</span> <span class="o">=</span> <span class="s">'NULLABLE'</span>
-<span class="n">table_schema</span><span class="o">.</span><span
class="n">fields</span><span class="o">.</span><span class="n">append</span><span
class="p">(</span><span class="n">source_field</span><span class="p">)</span>
-
-<span class="n">quote_field</span> <span class="o">=</span> <span
class="n">bigquery</span><span class="o">.</span><span class="n">TableFieldSchema</span><span
class="p">()</span>
-<span class="n">quote_field</span><span class="o">.</span><span
class="n">name</span> <span class="o">=</span> <span class="s">'quote'</span>
-<span class="n">quote_field</span><span class="o">.</span><span
class="nb">type</span> <span class="o">=</span> <span class="s">'STRING'</span>
-<span class="n">quote_field</span><span class="o">.</span><span
class="n">mode</span> <span class="o">=</span> <span class="s">'REQUIRED'</span>
-<span class="n">table_schema</span><span class="o">.</span><span
class="n">fields</span><span class="o">.</span><span class="n">append</span><span
class="p">(</span><span class="n">quote_field</span><span class="p">)</span>
+<div class="language-py highlighter-rouge"><pre class="highlight"><code><span
class="n">table_schema</span> <span class="o">=</span> <span class="p">{</span><span
class="s">'fields'</span><span class="p">:</span> <span class="p">[</span>
+    <span class="p">{</span><span class="s">'name'</span><span
class="p">:</span> <span class="s">'source'</span><span class="p">,</span>
<span class="s">'type'</span><span class="p">:</span> <span class="s">'STRING'</span><span
class="p">,</span> <span class="s">'mode'</span><span class="p">:</span>
<span class="s">'NULLABLE'</span><span class="p">},</span>
+    <span class="p">{</span><span class="s">'name'</span><span
class="p">:</span> <span class="s">'quote'</span><span class="p">,</span>
<span class="s">'type'</span><span class="p">:</span> <span class="s">'STRING'</span><span
class="p">,</span> <span class="s">'mode'</span><span class="p">:</span>
<span class="s">'REQUIRED'</span><span class="p">}</span>
+<span class="p">]}</span>
 </code></pre>
 </div>
 


Mime
View raw message