<?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: BINARY data type in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/binary-data-type/m-p/55705#M30414</link>
    <description>&lt;P&gt;If you are confused , please look at this thread, they explain that Databricks use base64 as binary default. This is not documented but can be tracked at source code level.&lt;/P&gt;&lt;P&gt;&lt;A title="Databricks binary default " href="https://stackoverflow.com/questions/75753311/not-getting-binary-value-in-databricks" target="_self"&gt;https://stackoverflow.com/questions/75753311/not-getting-binary-value-in-databricks&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Dec 2023 17:07:20 GMT</pubDate>
    <dc:creator>Wojciech_BUK</dc:creator>
    <dc:date>2023-12-23T17:07:20Z</dc:date>
    <item>
      <title>BINARY data type</title>
      <link>https://community.databricks.com/t5/data-engineering/binary-data-type/m-p/55676#M30405</link>
      <description>&lt;P&gt;Hello everyone.&lt;/P&gt;&lt;P&gt;I'm trying to understand how BINARY data type works in spark sql. According to &lt;A href="https://docs.databricks.com/en/sql/language-manual/data-types/binary-type.html#examples" target="_self"&gt;examples&lt;/A&gt; in the documentation, using cast or literal 'X' should return HEX representation of the binary data type, but when I try the same code, I see base64 representation:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-12-22 at 19.55.15.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/5660iE7D82FAACAAA7024/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-12-22 at 19.55.15.png" alt="Screenshot 2023-12-22 at 19.55.15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can not find any reference to such behaviour in the documentation. Is this the default behaviour? If so, what is the rationale behind it?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 18:57:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/binary-data-type/m-p/55676#M30405</guid>
      <dc:creator>Aidin</dc:creator>
      <dc:date>2023-12-22T18:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY data type</title>
      <link>https://community.databricks.com/t5/data-engineering/binary-data-type/m-p/55689#M30411</link>
      <description>&lt;P&gt;Maybe to_binary is what you're looking for...?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/en/sql/language-manual/functions/to_binary.html" target="_blank"&gt;https://docs.databricks.com/en/sql/language-manual/functions/to_binary.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 22:35:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/binary-data-type/m-p/55689#M30411</guid>
      <dc:creator>quakenbush</dc:creator>
      <dc:date>2023-12-22T22:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY data type</title>
      <link>https://community.databricks.com/t5/data-engineering/binary-data-type/m-p/55702#M30413</link>
      <description>&lt;P&gt;Thank you for your answer but this doesn't answer my question. I'm looking for an explanation on why the mentioned behaviour happens by default and documentation examples are not consistent with the behaviour&lt;/P&gt;</description>
      <pubDate>Sat, 23 Dec 2023 10:22:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/binary-data-type/m-p/55702#M30413</guid>
      <dc:creator>Aidin</dc:creator>
      <dc:date>2023-12-23T10:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY data type</title>
      <link>https://community.databricks.com/t5/data-engineering/binary-data-type/m-p/55705#M30414</link>
      <description>&lt;P&gt;If you are confused , please look at this thread, they explain that Databricks use base64 as binary default. This is not documented but can be tracked at source code level.&lt;/P&gt;&lt;P&gt;&lt;A title="Databricks binary default " href="https://stackoverflow.com/questions/75753311/not-getting-binary-value-in-databricks" target="_self"&gt;https://stackoverflow.com/questions/75753311/not-getting-binary-value-in-databricks&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Dec 2023 17:07:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/binary-data-type/m-p/55705#M30414</guid>
      <dc:creator>Wojciech_BUK</dc:creator>
      <dc:date>2023-12-23T17:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: BINARY data type</title>
      <link>https://community.databricks.com/t5/data-engineering/binary-data-type/m-p/55716#M30415</link>
      <description>&lt;P&gt;It seems to be the only rational explanation, although I can not reproduce the same traceback on my 13.3 LTS runtime. Seems to be an earlier runtime. It's weird that the documentation is completely wrong about the behavior.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Dec 2023 15:03:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/binary-data-type/m-p/55716#M30415</guid>
      <dc:creator>Aidin</dc:creator>
      <dc:date>2023-12-24T15:03:33Z</dc:date>
    </item>
  </channel>
</rss>

