<?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 Error during deserializing protobuf data in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-during-deserializing-protobuf-data/m-p/67189#M33302</link>
    <description>&lt;P&gt;I am receiving protobuf data in a json attribute and along with it I receive a descriptor file.&lt;/P&gt;&lt;P&gt;I am using from_protobuf to deserialize the data as below,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sambit_S_0-1713966940987.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7214i7F9B674F3DBF8436/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Sambit_S_0-1713966940987.png" alt="Sambit_S_0-1713966940987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It works most of the time but giving error when there are some recursive fields within the protobuf.&lt;/P&gt;&lt;P&gt;I tried the property as suggested by the spark doc&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://spark.apache.org/docs/latest/sql-data-sources-protobuf.html#:~:text=A%20recursive.,issues%20and%20even%20stack%20overflows" target="_blank"&gt;https://spark.apache.org/docs/latest/sql-data-sources-protobuf.html#:~:text=A%20recursive.,issues%20and%20even%20stack%20overflows&lt;/A&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Even if I set the property&lt;STRONG&gt;&lt;SPAN&gt;recursive.fields.max.depth to its max value 10 &lt;/SPAN&gt;&lt;/STRONG&gt;and my protobuf data contains 4 levels of recursive data, it errors out.&lt;/P&gt;&lt;P&gt;Any help here will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2024 14:01:19 GMT</pubDate>
    <dc:creator>Sambit_S</dc:creator>
    <dc:date>2024-04-24T14:01:19Z</dc:date>
    <item>
      <title>Error during deserializing protobuf data</title>
      <link>https://community.databricks.com/t5/data-engineering/error-during-deserializing-protobuf-data/m-p/67189#M33302</link>
      <description>&lt;P&gt;I am receiving protobuf data in a json attribute and along with it I receive a descriptor file.&lt;/P&gt;&lt;P&gt;I am using from_protobuf to deserialize the data as below,&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sambit_S_0-1713966940987.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/7214i7F9B674F3DBF8436/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Sambit_S_0-1713966940987.png" alt="Sambit_S_0-1713966940987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It works most of the time but giving error when there are some recursive fields within the protobuf.&lt;/P&gt;&lt;P&gt;I tried the property as suggested by the spark doc&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://spark.apache.org/docs/latest/sql-data-sources-protobuf.html#:~:text=A%20recursive.,issues%20and%20even%20stack%20overflows" target="_blank"&gt;https://spark.apache.org/docs/latest/sql-data-sources-protobuf.html#:~:text=A%20recursive.,issues%20and%20even%20stack%20overflows&lt;/A&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Even if I set the property&lt;STRONG&gt;&lt;SPAN&gt;recursive.fields.max.depth to its max value 10 &lt;/SPAN&gt;&lt;/STRONG&gt;and my protobuf data contains 4 levels of recursive data, it errors out.&lt;/P&gt;&lt;P&gt;Any help here will be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 14:01:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-during-deserializing-protobuf-data/m-p/67189#M33302</guid>
      <dc:creator>Sambit_S</dc:creator>
      <dc:date>2024-04-24T14:01:19Z</dc:date>
    </item>
  </channel>
</rss>

