<?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>question Re: extractAvroPaths nested structure in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/extractAvroPaths-nested-structure/m-p/17342#M2665</link>
    <description>&lt;P&gt;Srry too quick on the post trigger:&amp;nbsp;this was just a matter of quoting the mapping:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;/my_attachments : "/attachments[]"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The question remains how to map the structure to a solr index, but will post that in the appropriate section.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Aug 2014 12:31:48 GMT</pubDate>
    <dc:creator>RobV</dc:creator>
    <dc:date>2014-08-21T12:31:48Z</dc:date>
    <item>
      <title>extractAvroPaths nested structure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/extractAvroPaths-nested-structure/m-p/17340#M2664</link>
      <description>&lt;P&gt;I'm having trouble extracting a nested structure from my avro data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;_attachment_body=[&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "username" : "alex"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "date" : "21-08-2014"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "attachments" : [&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "documents" : [&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "title": "test"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "tags" : [ "a", "b", "c" ]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "optional1" : "test2"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "title" : "test2"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } ],&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "context" : "school"&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Extracting the paths with Avro:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;{ extractAvroPaths {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;flatten : true&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;paths : {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/my_user : /username &amp;nbsp; &amp;nbsp; &amp;nbsp; # this works fine&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# all three of these result in the same error message, with different patemeters&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/my_attachments : /attachments[]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/my_documents : /attachments[]/documents[]&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/my_contexts : /attachments[]/documents[]/context&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Results in the following error message:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;EM&gt;com.typesafe.config.ConfigExceptionWrongType: morph-solr.conf: 30: Cannot concatenate object or list with a non-object-or-list, ConfigString("/my_attachments") and SimpleConfigList([]) are not compatible.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eventualy I would like to map the fields to a solr index. So if its possible to extract the nested structures, the followup question would be how to map those to a solr schema, but lets take it one step at a time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:05:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/extractAvroPaths-nested-structure/m-p/17340#M2664</guid>
      <dc:creator>RobV</dc:creator>
      <dc:date>2022-09-16T09:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: extractAvroPaths nested structure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/extractAvroPaths-nested-structure/m-p/17342#M2665</link>
      <description>&lt;P&gt;Srry too quick on the post trigger:&amp;nbsp;this was just a matter of quoting the mapping:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;/my_attachments : "/attachments[]"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The question remains how to map the structure to a solr index, but will post that in the appropriate section.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2014 12:31:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/extractAvroPaths-nested-structure/m-p/17342#M2665</guid>
      <dc:creator>RobV</dc:creator>
      <dc:date>2014-08-21T12:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: extractAvroPaths nested structure</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/extractAvroPaths-nested-structure/m-p/17356#M2666</link>
      <description>Try to use syntax with quotes, like so :&lt;BR /&gt;&lt;BR /&gt;/my_contexts : "/attachments[]/documents[]/context"&lt;BR /&gt;&lt;BR /&gt;Wolfgang.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Aug 2014 13:20:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/extractAvroPaths-nested-structure/m-p/17356#M2666</guid>
      <dc:creator>whosch</dc:creator>
      <dc:date>2014-08-21T13:20:56Z</dc:date>
    </item>
  </channel>
</rss>

