<?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 Transformation: Moving Child name value to parent denormalize in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/JOLT-Transformation-Moving-Child-name-value-to-parent/m-p/370267#M240673</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;See if this helps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "operation": "shift",
    "spec": {
      "header": {
        "timeStamp": "records.inv_activity_ts",
        "activityId": "records.inv_activity_id",
        "action": "records.action"
      },
      "resource": {
        "drniId": "records.inv_id",
        "subtype": "records.inv_subtype",
        "name": "records.inv_name",
        "resourceCharacteristic": {
          "*": {
            "name": {
              "status": {
                "$": "records.status",
                "@(2,value)": "records.matchingStatus_value"
              },
              "installDate": {
                "@(2,value)": "records.installDate"
              }
            }
          }
        }
      }
    }
}
]&lt;/LI-CODE&gt;&lt;P&gt;If that helps please &lt;STRONG&gt;accept&lt;/STRONG&gt; solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 08 May 2023 14:58:57 GMT</pubDate>
    <dc:creator>SAMSAL</dc:creator>
    <dc:date>2023-05-08T14:58:57Z</dc:date>
    <item>
      <title>JOLT Transformation: Moving Child name value to parent denormalize</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JOLT-Transformation-Moving-Child-name-value-to-parent/m-p/370257#M240669</link>
      <description>&lt;P&gt;For the below given input, how do i move the name value pairs(installDate and status) to the upper level&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"header": {&lt;BR /&gt;"version": "1.0",&lt;BR /&gt;"timeStamp": "1670484663189",&lt;BR /&gt;"activityId": "256388257993155783",&lt;BR /&gt;"action": "create",&lt;BR /&gt;"refreshId": "null"&lt;BR /&gt;},&lt;BR /&gt;"resource": {&lt;BR /&gt;"drniId": "256383859946641699",&lt;BR /&gt;"@type": "LogicalCrossConnection",&lt;BR /&gt;"subtype": "Backplane Connection",&lt;BR /&gt;"name": "Backplane Connection",&lt;BR /&gt;"resourceCharacteristic": [&lt;BR /&gt;{&lt;BR /&gt;"name": "tmf639_dataSource_ingestion_uuid",&lt;BR /&gt;"value": "256383859946641699",&lt;BR /&gt;"@type": "string"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "p16Latest",&lt;BR /&gt;"value": true,&lt;BR /&gt;"@type": "boolean"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "installDate",&lt;BR /&gt;"value": "202303323",&lt;BR /&gt;"@type": "string"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "status",&lt;BR /&gt;"value": "In Service",&lt;BR /&gt;"@type": "string"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"resourceRelationship": [&lt;BR /&gt;{&lt;BR /&gt;"drniId": "256387639517862117",&lt;BR /&gt;"@type": "LogicalInterface:HAS_CONNECTION_COMPONENT:OUT",&lt;BR /&gt;"subtype": "ODU2e",&lt;BR /&gt;"name": "ODU2e.1-8",&lt;BR /&gt;"relationDrniId": "256383859946641700",&lt;BR /&gt;"resourceRelationshipCharacteristic": [&lt;BR /&gt;{&lt;BR /&gt;"name": "p16Latest",&lt;BR /&gt;"value": true,&lt;BR /&gt;"@type": "boolean"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "sectionNumber",&lt;BR /&gt;"value": 0,&lt;BR /&gt;"@type": "long"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "p3CreateActivity",&lt;BR /&gt;"value": 256388257993155780,&lt;BR /&gt;"@type": "long"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "isNotInRoute",&lt;BR /&gt;"value": "N",&lt;BR /&gt;"@type": "string"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "p2Create",&lt;BR /&gt;"value": 1670480203578,&lt;BR /&gt;"@type": "long"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "seq",&lt;BR /&gt;"value": 1,&lt;BR /&gt;"@type": "long"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"drniId": "256383859946641335",&lt;BR /&gt;"@type": "LogicalInterface:HAS_CONNECTION_COMPONENT:OUT",&lt;BR /&gt;"subtype": "ODU2e",&lt;BR /&gt;"name": "ODU2e.1-8",&lt;BR /&gt;"relationDrniId": "256383859946641701",&lt;BR /&gt;"resourceRelationshipCharacteristic": [&lt;BR /&gt;{&lt;BR /&gt;"name": "p16Latest",&lt;BR /&gt;"value": true,&lt;BR /&gt;"@type": "boolean"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "sectionNumber",&lt;BR /&gt;"value": 0,&lt;BR /&gt;"@type": "long"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "p3CreateActivity",&lt;BR /&gt;"value": 256388257993155780,&lt;BR /&gt;"@type": "long"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "isNotInRoute",&lt;BR /&gt;"value": "N",&lt;BR /&gt;"@type": "string"&lt;BR /&gt;},&lt;BR /&gt;{&lt;BR /&gt;"name": "latest",&lt;BR /&gt;"value": [&lt;BR /&gt;2,&lt;BR /&gt;3,&lt;BR /&gt;16&lt;BR /&gt;],&lt;BR /&gt;"@type": "array"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&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;Expected Output&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"records" : {&lt;BR /&gt;"inv_activity_ts" : "1670484663189",&lt;BR /&gt;"inv_activity_id" : "256388257993155783",&lt;BR /&gt;"action" : "create",&lt;BR /&gt;"inv_id" : "256383859946641699",&lt;BR /&gt;"inv_subtype" : "Backplane Connection",&lt;BR /&gt;"inv_name" : "Backplane Connection",&lt;BR /&gt;"installDate" : "202303323",&lt;BR /&gt;"status" : "status"&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;Any help you could provide?&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 13:40:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JOLT-Transformation-Moving-Child-name-value-to-parent/m-p/370257#M240669</guid>
      <dc:creator>Althotta</dc:creator>
      <dc:date>2023-05-08T13:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: JOLT Transformation: Moving Child name value to parent denormalize</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JOLT-Transformation-Moving-Child-name-value-to-parent/m-p/370267#M240673</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;See if this helps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "operation": "shift",
    "spec": {
      "header": {
        "timeStamp": "records.inv_activity_ts",
        "activityId": "records.inv_activity_id",
        "action": "records.action"
      },
      "resource": {
        "drniId": "records.inv_id",
        "subtype": "records.inv_subtype",
        "name": "records.inv_name",
        "resourceCharacteristic": {
          "*": {
            "name": {
              "status": {
                "$": "records.status",
                "@(2,value)": "records.matchingStatus_value"
              },
              "installDate": {
                "@(2,value)": "records.installDate"
              }
            }
          }
        }
      }
    }
}
]&lt;/LI-CODE&gt;&lt;P&gt;If that helps please &lt;STRONG&gt;accept&lt;/STRONG&gt; solution.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 14:58:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JOLT-Transformation-Moving-Child-name-value-to-parent/m-p/370267#M240673</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-05-08T14:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: JOLT Transformation: Moving Child name value to parent denormalize</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JOLT-Transformation-Moving-Child-name-value-to-parent/m-p/370272#M240675</link>
      <description>&lt;P&gt;i have slightly modifed the spec as. The matchingStatus_value doesn't provide the right result&lt;/P&gt;&lt;P&gt;[{&lt;BR /&gt;"operation": "shift",&lt;BR /&gt;"spec": {&lt;BR /&gt;"header": {&lt;BR /&gt;"timeStamp": "records.inv_activity_ts",&lt;BR /&gt;"activityId": "records.inv_activity_id",&lt;BR /&gt;"action": "records.action"&lt;BR /&gt;},&lt;BR /&gt;"resource": {&lt;BR /&gt;"drniId": "records.inv_id",&lt;BR /&gt;"subtype": "records.inv_subtype",&lt;BR /&gt;"name": "records.inv_name",&lt;BR /&gt;"resourceCharacteristic": {&lt;BR /&gt;"*": {&lt;BR /&gt;"name": {&lt;BR /&gt;"tmf639_dataSource_ingestion_uuid": {&lt;BR /&gt;"@(2,value)": "records.tmf639_dataSource_ingestion_uuid"&lt;BR /&gt;},&lt;BR /&gt;"createdDate": {&lt;BR /&gt;"@(2,value)": "records.createdDate"&lt;BR /&gt;},&lt;BR /&gt;"lastModifiedDate": {&lt;BR /&gt;"@(2,value)": "records.lastModifiedDate"&lt;BR /&gt;},&lt;BR /&gt;"status": {&lt;BR /&gt;"@(2,value)": "records.status"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a valid one?&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 16:20:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JOLT-Transformation-Moving-Child-name-value-to-parent/m-p/370272#M240675</guid>
      <dc:creator>Althotta</dc:creator>
      <dc:date>2023-05-08T16:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: JOLT Transformation: Moving Child name value to parent denormalize</title>
      <link>https://community.cloudera.com/t5/Support-Questions/JOLT-Transformation-Moving-Child-name-value-to-parent/m-p/370273#M240676</link>
      <description>&lt;P&gt;if what you provided seems to be giving you the expected output then you are good to go :).&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 16:47:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/JOLT-Transformation-Moving-Child-name-value-to-parent/m-p/370273#M240676</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2023-05-08T16:47:13Z</dc:date>
    </item>
  </channel>
</rss>

