<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connection from BigQuery to Databricks populating dictionary keys as &amp;quot;v&amp;quot; in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104405#M41730</link>
    <description>&lt;P&gt;Did you use any specific guide or code you can share with me to make this connection?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jan 2025 16:58:36 GMT</pubDate>
    <dc:creator>Walter_C</dc:creator>
    <dc:date>2025-01-06T16:58:36Z</dc:date>
    <item>
      <title>Connection from BigQuery to Databricks populating dictionary keys as "v"</title>
      <link>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104403#M41729</link>
      <description>&lt;P&gt;I was able to connect our Bigquery account to our Databricks catalog. However, all the keys in the nested dictionary columsn populate as 'v'. For example:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{"v":[{"v":{"f":[{"v":"engagement_time_msec"},{"v":{"f":[{"v":null},{"v":"2"},{"v":null},{"v":null}]}}]}},{"v":{"f":[{"v":"engaged_session_event"},{"v":{"f":[{"v":null},{"v":"1"},{"v":null},{"v":null}]}}]}},{"v":{"f":[{"v":"page_location"},{"v":{"f":[{"v":"&lt;A href="https://www.logos.com/cart" target="_blank"&gt;https://www.logos.com/cart&lt;/A&gt;"},{"v":null},{"v":null},{"v":null}]}}]}},{"v":{"f":[{"v":"ignore_referrer"},{"v":{"f":[{"v":"true"},{"v":null},{"v":null},{"v":null}]}}]}},{"v":{"f":[{"v":"batch_page_id"},{"v":{"f":[{"v":null},{"v":"1735751131326"},{"v":null},{"v":null}]}}]}},{"v":{"f":[{"v":"batch_ordering_id"},{"v":{"f":[{"v":null},{"v":"3"},{"v":null},{"v":null}]}}]}},{"v":{"f":[{"v":"currency"},{"v":{"f":[{"v":"USD"},{"v":null},{"v":null},{"v":null}]}}]}},{"v":{"f":[{"v":"page_referrer"},{"v":{"f":[{"v":"&lt;A href="https://www/subscriber" target="_blank"&gt;https://www/subscriber&lt;/A&gt;"},{"v":null},{"v":null},{"v":null}]}}]}},{"v":{"f":[{"v":"page_title"},{"v":{"f":[{"v":"Shopping Cart | Logos Bible Software"},{"v":null},{"v":null},{"v":null}]}}]}},{"v":{"f":[{"v":"value"},{"v":{"f":[{"v":null},{"v":null},{"v":null},{"v":"74.87"}]}}]}},{"v":{"f":[{"v":"ga_session_id"},{"v":{"f":[{"v":null},{"v":"1735745404"},{"v":null},{"v":null}]}}]}},{"v":{"f":[{"v":"session_engaged"},{"v":{"f":[{"v":"1"},{"v":null},{"v":null},{"v":null}]}}]}},{"v":{"f":[{"v":"ga_session_number"},{"v":{"f":[{"v":null},{"v":"6"},{"v":null},{"v":null}]}}]}}]}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 16:51:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104403#M41729</guid>
      <dc:creator>KristiLogos</dc:creator>
      <dc:date>2025-01-06T16:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Connection from BigQuery to Databricks populating dictionary keys as "v"</title>
      <link>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104405#M41730</link>
      <description>&lt;P&gt;Did you use any specific guide or code you can share with me to make this connection?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 16:58:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104405#M41730</guid>
      <dc:creator>Walter_C</dc:creator>
      <dc:date>2025-01-06T16:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Connection from BigQuery to Databricks populating dictionary keys as "v"</title>
      <link>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104414#M41735</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/88823"&gt;@Walter_C&lt;/a&gt;&amp;nbsp; - I've pretty much connected via unity catalog by adding BigQuery as a new connection. I was asked and added my json key from Google Console for the specific BigQuery project when creating the connection:&lt;BR /&gt;&lt;A href="https://docs.databricks.com/en/query-federation/bigquery.html" target="_blank"&gt;https://docs.databricks.com/en/query-federation/bigquery.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 17:32:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104414#M41735</guid>
      <dc:creator>KristiLogos</dc:creator>
      <dc:date>2025-01-06T17:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: Connection from BigQuery to Databricks populating dictionary keys as "v"</title>
      <link>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104429#M41741</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/122107"&gt;@KristiLogos&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I had the same problem as you, but in my case I was extracting ga4 data from big query using ADF.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to use following code for every column that has JSON content.&lt;/P&gt;&lt;P&gt;select TO_JSON_STRING(items) as jsondata FROM ...&lt;/P&gt;&lt;P&gt;The result will contain the proper names instead of the "v" names.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 20:11:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104429#M41741</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-01-06T20:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Connection from BigQuery to Databricks populating dictionary keys as "v"</title>
      <link>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104436#M41746</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;I couldn't run&amp;nbsp;&lt;SPAN&gt;select TO_JSON_STRING(event_params) as event_params FROM ...&lt;BR /&gt;I don't think thats a built-in Databricks. Is there another way you've had success?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;error:&lt;BR /&gt;[UNRESOLVED_ROUTINE] Cannot resolve routine `TO_JSON_STRING` on search path&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 22:02:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104436#M41746</guid>
      <dc:creator>KristiLogos</dc:creator>
      <dc:date>2025-01-06T22:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Connection from BigQuery to Databricks populating dictionary keys as "v"</title>
      <link>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104469#M41760</link>
      <description>&lt;P&gt;Sorry&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/122107"&gt;@KristiLogos&lt;/a&gt;&amp;nbsp;, I didn't notice that you're using lakehouse federation. In my case the extraction part was done in ADF, so I was able to use bigquery TO_JSON_STRING function to resolve this issue.&lt;BR /&gt;You can also take a look at below discussion and try to use&amp;nbsp;&lt;A class="" href="https://gist.github.com/shreyasms17/96f74e45d862f8f1dce0532442cc95b2" target="_blank" rel="noopener"&gt;autoflatten_optimised function.&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Or take similar approach as&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/103893"&gt;@AnaMocanu&lt;/a&gt;&amp;nbsp;in that thread.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.databricks.com/t5/data-engineering/best-way-to-parse-google-analytics-data-in-databricks-notebook/td-p/66976" target="_blank" rel="noopener"&gt;Solved: Best way to parse Google Analytics data in Databri... - Databricks Community - 66976&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 08:32:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104469#M41760</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-01-07T08:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Connection from BigQuery to Databricks populating dictionary keys as "v"</title>
      <link>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104550#M41795</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;No worries, and thanks I'll try that out. Also, was there a reason in particular you went with ADF and not federated connection to BQ? Just curious&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 15:42:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connection-from-bigquery-to-databricks-populating-dictionary/m-p/104550#M41795</guid>
      <dc:creator>KristiLogos</dc:creator>
      <dc:date>2025-01-07T15:42:57Z</dc:date>
    </item>
  </channel>
</rss>

