Error during deserializing protobuf data

Sambit_S
New Contributor III

I am receiving protobuf data in a json attribute and along with it I receive a descriptor file.

I am using from_protobuf to deserialize the data as below,

Sambit_S_0-1713966940987.png

It works most of the time but giving error when there are some recursive fields within the protobuf.

I tried the property as suggested by the spark doc https://spark.apache.org/docs/latest/sql-data-sources-protobuf.html#:~:text=A%20recursive.,issues%20....

Even if I set the propertyrecursive.fields.max.depth to its max value 10 and my protobuf data contains 4 levels of recursive data, it errors out.

Any help here will be appreciated.