<?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: Jolt transform in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Jolt-transform/m-p/330920#M230786</link>
    <description>&lt;P&gt;This task has been successfully solved! The required Jolt construction is shown below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="solution.png" style="width: 604px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/32917iD9E00DF58E087BCF/image-size/large?v=v2&amp;amp;px=999" role="button" title="solution.png" alt="solution.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[&lt;BR /&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"operation": "shift",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"spec": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"*": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"table_name": "&amp;amp;",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"*": "data[&amp;amp;1].&amp;amp;"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; {&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"operation": "cardinality",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"spec": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"table_name": "ONE"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;]&lt;/P&gt;</description>
    <pubDate>Wed, 24 Nov 2021 08:25:59 GMT</pubDate>
    <dc:creator>Protector</dc:creator>
    <dc:date>2021-11-24T08:25:59Z</dc:date>
    <item>
      <title>Jolt transform</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Jolt-transform/m-p/330850#M230770</link>
      <description>&lt;P&gt;Hello everyone!&amp;nbsp;I need a help in Jolt transform.&lt;/P&gt;&lt;P&gt;I have array, that consist from many json objects. (&lt;A href="https://jolt-demo.appspot.com/#mapToList" target="_blank"&gt;https://jolt-demo.appspot.com/&lt;/A&gt; )&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="1.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/32908i03AE7131893EC43C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"table_name": "table_vd",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"scratch_name": "l1_sample_1_1",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"scratch_order": 1&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"table_name": "table_vd",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"scratch_name": "l1_sample_1_1",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"scratch_order": 34&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"table_name": "table_vd",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"scratch_name": "l1_sample_2",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"scratch_order": 3&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What transformation of Jolt needs to be done to get the following result?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="4.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/32909i037C02409567F9FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now i have next Jolt construction.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/32910i104EDBBA5D9CF391/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"operation": "shift",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"spec": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "*": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"table_name": "table_name",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"*": { "@0": "data[0].&amp;amp;1" }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the result is not correct.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="3.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/32911i7EA60D5719F72342/image-size/medium?v=v2&amp;amp;px=400" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 15:33:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Jolt-transform/m-p/330850#M230770</guid>
      <dc:creator>Protector</dc:creator>
      <dc:date>2021-11-23T15:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Jolt transform</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Jolt-transform/m-p/330920#M230786</link>
      <description>&lt;P&gt;This task has been successfully solved! The required Jolt construction is shown below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="solution.png" style="width: 604px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/32917iD9E00DF58E087BCF/image-size/large?v=v2&amp;amp;px=999" role="button" title="solution.png" alt="solution.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[&lt;BR /&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"operation": "shift",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"spec": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"*": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"table_name": "&amp;amp;",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"*": "data[&amp;amp;1].&amp;amp;"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; {&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"operation": "cardinality",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;"spec": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;"table_name": "ONE"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;]&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 08:25:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Jolt-transform/m-p/330920#M230786</guid>
      <dc:creator>Protector</dc:creator>
      <dc:date>2021-11-24T08:25:59Z</dc:date>
    </item>
  </channel>
</rss>

