<?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 add custom metadata to avro file with pyspark in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/add-custom-metadata-to-avro-file-with-pyspark/m-p/9182#M4645</link>
    <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;i need to add a custom metadata into a avro file. The avro file containt data. &lt;/P&gt;&lt;P&gt;we have tried to use "option" within the write function but it's not taken without generated any error.&lt;/P&gt;&lt;P&gt;df.write.format("avro").option("avro.codec", "snappy").option(&lt;B&gt;"header", "metadata_key:metadata_value")&lt;/B&gt;.mode("overwrite").save("/tmp/avro_with_metadata")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm seeking a solution to add a custom metadata into a data avro file.&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Zakaria&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2023 19:03:51 GMT</pubDate>
    <dc:creator>zak</dc:creator>
    <dc:date>2023-02-16T19:03:51Z</dc:date>
    <item>
      <title>add custom metadata to avro file with pyspark</title>
      <link>https://community.databricks.com/t5/data-engineering/add-custom-metadata-to-avro-file-with-pyspark/m-p/9182#M4645</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;i need to add a custom metadata into a avro file. The avro file containt data. &lt;/P&gt;&lt;P&gt;we have tried to use "option" within the write function but it's not taken without generated any error.&lt;/P&gt;&lt;P&gt;df.write.format("avro").option("avro.codec", "snappy").option(&lt;B&gt;"header", "metadata_key:metadata_value")&lt;/B&gt;.mode("overwrite").save("/tmp/avro_with_metadata")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm seeking a solution to add a custom metadata into a data avro file.&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Zakaria&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 19:03:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/add-custom-metadata-to-avro-file-with-pyspark/m-p/9182#M4645</guid>
      <dc:creator>zak</dc:creator>
      <dc:date>2023-02-16T19:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: add custom metadata to avro file with pyspark</title>
      <link>https://community.databricks.com/t5/data-engineering/add-custom-metadata-to-avro-file-with-pyspark/m-p/9186#M4649</link>
      <description>&lt;P&gt;thank you a lot for your answer, it's very helpful.&lt;/P&gt;&lt;P&gt;I have a additionnal question please, is it possible to add a avro binnary metada inside the json avro_schema?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 17:08:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/add-custom-metadata-to-avro-file-with-pyspark/m-p/9186#M4649</guid>
      <dc:creator>zak</dc:creator>
      <dc:date>2023-02-24T17:08:02Z</dc:date>
    </item>
  </channel>
</rss>

