Skip to content

Commit

Permalink
[skip ci] Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ci-build committed Oct 10, 2024
1 parent b08ddd4 commit ca8cf83
Show file tree
Hide file tree
Showing 399 changed files with 29 additions and 10 deletions.
2 changes: 1 addition & 1 deletion html/latest/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 7b0c483ee54ec8e5dc9ed7a0cda5c474
config: 2427a548f1f2b91f9923d07a4bb8239b
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified html/latest/.doctrees/actblue.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/action_builder.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/action_kit.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/action_network.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/airtable.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/alchemer.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/auth0.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/aws.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/azure.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/bill_com.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/bloomerang.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/box.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/braintree.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/build_a_connector.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/capitolcanary.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/catalist.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/census.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/census_geocoder.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/civis.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/contributing.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/controlshift.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/copper.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/crowdtangle.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/databases.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/dbsync.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/donorbox.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/environment.pickle
Binary file not shown.
Binary file modified html/latest/.doctrees/facebook_ads.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/formstack.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/freshdesk.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/github.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/google.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/hustle.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/index.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/mailchimp.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/mobilecommons.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/mobilize_america.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/nation_builder.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/newmode.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/ngpvan.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/notifications.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/p2a.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/pdi.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/quickbase.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/redash.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/rockthevote.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/salesforce.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/scytl.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/sftp.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/shopify.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/sisense.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/table.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/targetsmart.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/targetsmart_api.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/targetsmart_automation_workflows.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/training_guides/etl_best_practices.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/training_guides/getting_set_up.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/turbovote.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/twilio.doctree
Binary file not shown.
Binary file not shown.
Binary file modified html/latest/.doctrees/use_cases/contribute_use_cases.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/use_cases/mysql_to_googlesheets.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/use_cases/opt_outs_to_everyaction.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/utilities.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/write_tests.doctree
Binary file not shown.
Binary file modified html/latest/.doctrees/zoom.doctree
Binary file not shown.
17 changes: 17 additions & 0 deletions html/latest/_modules/parsons/google/google_bigquery.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@
<h1>Source code for parsons.google.google_bigquery</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">datetime</span>
<span class="kn">import</span> <span class="nn">logging</span>
<span class="kn">import</span> <span class="nn">json</span>
<span class="kn">import</span> <span class="nn">pickle</span>
<span class="kn">import</span> <span class="nn">random</span>
<span class="kn">import</span> <span class="nn">uuid</span>
Expand Down Expand Up @@ -893,6 +894,7 @@ <h1>Source code for parsons.google.google_bigquery</h1><div class="highlight"><p
<span class="n">allow_jagged_rows</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">True</span><span class="p">,</span>
<span class="n">quote</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="nb">str</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="n">schema</span><span class="p">:</span> <span class="n">Optional</span><span class="p">[</span><span class="n">List</span><span class="p">[</span><span class="nb">dict</span><span class="p">]]</span> <span class="o">=</span> <span class="kc">None</span><span class="p">,</span>
<span class="n">convert_dict_columns_to_json</span><span class="p">:</span> <span class="nb">bool</span> <span class="o">=</span> <span class="kc">True</span><span class="p">,</span>
<span class="o">**</span><span class="n">load_kwargs</span><span class="p">,</span>
<span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
Expand Down Expand Up @@ -922,6 +924,8 @@ <h1>Source code for parsons.google.google_bigquery</h1><div class="highlight"><p
<span class="sd"> template_table: str</span>
<span class="sd"> Table name to be used as the load schema. Load operation wil use the same</span>
<span class="sd"> columns and data types as the template table.</span>
<span class="sd"> convert_dict_columns_to_json: bool</span>
<span class="sd"> If set to True, will convert any dict columns (which cannot by default be successfully loaded to BigQuery to JSON strings)</span>
<span class="sd"> **load_kwargs: kwargs</span>
<span class="sd"> Arguments to pass to the underlying load_table_from_uri call on the BigQuery</span>
<span class="sd"> client.</span>
Expand All @@ -944,6 +948,19 @@ <h1>Source code for parsons.google.google_bigquery</h1><div class="highlight"><p
<span class="k">else</span><span class="p">:</span>
<span class="n">csv_delimiter</span> <span class="o">=</span> <span class="s2">&quot;,&quot;</span>

<span class="k">if</span> <span class="n">convert_dict_columns_to_json</span><span class="p">:</span>
<span class="c1"># Convert dict columns to JSON strings</span>
<span class="k">for</span> <span class="n">field</span> <span class="ow">in</span> <span class="n">tbl</span><span class="o">.</span><span class="n">get_columns_type_stats</span><span class="p">():</span>
<span class="k">if</span> <span class="s2">&quot;dict&quot;</span> <span class="ow">in</span> <span class="n">field</span><span class="p">[</span><span class="s2">&quot;type&quot;</span><span class="p">]:</span>
<span class="n">new_petl</span> <span class="o">=</span> <span class="n">tbl</span><span class="o">.</span><span class="n">table</span><span class="o">.</span><span class="n">addfield</span><span class="p">(</span>
<span class="n">field</span><span class="p">[</span><span class="s2">&quot;name&quot;</span><span class="p">]</span> <span class="o">+</span> <span class="s2">&quot;_replace&quot;</span><span class="p">,</span> <span class="k">lambda</span> <span class="n">row</span><span class="p">:</span> <span class="n">json</span><span class="o">.</span><span class="n">dumps</span><span class="p">(</span><span class="n">row</span><span class="p">[</span><span class="n">field</span><span class="p">[</span><span class="s2">&quot;name&quot;</span><span class="p">]])</span>
<span class="p">)</span>
<span class="n">new_tbl</span> <span class="o">=</span> <span class="n">Table</span><span class="p">(</span><span class="n">new_petl</span><span class="p">)</span>
<span class="n">new_tbl</span><span class="o">.</span><span class="n">remove_column</span><span class="p">(</span><span class="n">field</span><span class="p">[</span><span class="s2">&quot;name&quot;</span><span class="p">])</span>
<span class="n">new_tbl</span><span class="o">.</span><span class="n">rename_column</span><span class="p">(</span><span class="n">field</span><span class="p">[</span><span class="s2">&quot;name&quot;</span><span class="p">]</span> <span class="o">+</span> <span class="s2">&quot;_replace&quot;</span><span class="p">,</span> <span class="n">field</span><span class="p">[</span><span class="s2">&quot;name&quot;</span><span class="p">])</span>
<span class="n">new_tbl</span><span class="o">.</span><span class="n">materialize</span><span class="p">()</span>
<span class="n">tbl</span> <span class="o">=</span> <span class="n">new_tbl</span>

<span class="n">job_config</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_process_job_config</span><span class="p">(</span>
<span class="n">job_config</span><span class="o">=</span><span class="n">job_config</span><span class="p">,</span>
<span class="n">destination_table_name</span><span class="o">=</span><span class="n">table_name</span><span class="p">,</span>
Expand Down
Loading

0 comments on commit ca8cf83

Please sign in to comment.