<?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: help with Jolt tarnsformation in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/help-with-Jolt-tarnsformation/m-p/368699#M240239</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;Kudos to you.. it worked.. /\&lt;/P&gt;</description>
    <pubDate>Mon, 17 Apr 2023 12:21:38 GMT</pubDate>
    <dc:creator>SandyClouds</dc:creator>
    <dc:date>2023-04-17T12:21:38Z</dc:date>
    <item>
      <title>help with Jolt tarnsformation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/help-with-Jolt-tarnsformation/m-p/368551#M240193</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for some help with JOLT transformatio, which i am completely new.&lt;/P&gt;&lt;P&gt;my input JSON looks like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
	"type": "delete",
	"timestamp": 1681484884000,
	"binlog_filename": "bin.000003",
	"binlog_position": 6378700,
	"database": "db1",
	"table_name": "records",
	"table_id": 108,
	"columns": [{
		"id": 1,
		"name": "id",
		"column_type": 4,
		"value": 259
	}, {
		"id": 2,
		"name": "index_id",
		"column_type": 4,
		"value": 1
	}, {
		"id": 3,
		"name": "state_id",
		"column_type": 4,
		"value": 1
	}]
}&lt;/LI-CODE&gt;&lt;P&gt;This is from mysql binlogs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to transform it to have a single field..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[{
	"id": 259
}]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from one of the tutorials here in cloudera comminity, i saw this JOLT transformation.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "operation": "shift",
    "spec": {
      "columns": {
        "*": {
          "@(value)": "[#1].@(1,name)"
        }
      }
    }
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it gives all fileds.. but I just need one filed which is the ID. I need to drop rest all fields..&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help in this regards.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 15:29:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/help-with-Jolt-tarnsformation/m-p/368551#M240193</guid>
      <dc:creator>SandyClouds</dc:creator>
      <dc:date>2023-04-14T15:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: help with Jolt tarnsformation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/help-with-Jolt-tarnsformation/m-p/368583#M240206</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you are looking to set the id value for the first element in the columns array you can use the following spec:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "operation": "shift",
    "spec": {
      "columns": {
        "0": {
          "value": "[].@(1,name)"
        }
      }
    }
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that helps please &lt;STRONG&gt;accept&lt;/STRONG&gt; solution.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2023 15:23:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/help-with-Jolt-tarnsformation/m-p/368583#M240206</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-04-15T15:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: help with Jolt tarnsformation</title>
      <link>https://community.cloudera.com/t5/Support-Questions/help-with-Jolt-tarnsformation/m-p/368699#M240239</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;Kudos to you.. it worked.. /\&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 12:21:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/help-with-Jolt-tarnsformation/m-p/368699#M240239</guid>
      <dc:creator>SandyClouds</dc:creator>
      <dc:date>2023-04-17T12:21:38Z</dc:date>
    </item>
  </channel>
</rss>

