title: Column attributes of type STRUCT cannot be used in SELECT DISTINCT
body: <p>I have this sql statement</p>
  <pre><code>Select distinct _data.attributes from rd-bigdata-lake-prd.lake_gcs.xyz
  </code></pre>
  <p>and I get this error</p>
  <pre><code>400 Column attributes of type STRUCT cannot be used in SELECT DISTINCT
  </code></pre>
  <p>The value of _data.attributes is</p>
  <pre><code>{&quot;url&quot;:&quot;/services/data/v52.0/sobjects/Message/123456789&quot;,&quot;type&quot;:&quot;Message&quot;}
  </code></pre>
  <p>How to change the sql statement, that the field _data.attributes is readable with select distinct?
  I tried to cast _data.attributes to string. But it doesn't work.</p>