如何将数据从XML源写入Dynamo数据库

时间:2018-10-11 07:38:05

标签: aws-glue

我下面有一个示例XML文件,我想将其加载到dynamo db中,但是胶搜寻器正在创建无法直接映射到dynamo db的结构类型

<root>
    <fileid>123</fileid>
    <filename>test.xml</filename>
    <consumers>
        <consumer>
           <sourceCid>10862037</sourceCid>
           <preferences>
              <preference>
                 <CONTENTTYPE>Consent</contentType>
                 <value>E</value>
                 <DISTRIBUTIONCHANNEL>test@test.com</distributionChannel>
              </preference>
           </preferences>
              <deliveryPoints>
                 <brandIdDeliveryPoint>
                    <accountNum>10862036</accountNum>
                 </brandIdDeliveryPoint>
           </deliveryPoints>
        </consumer>
        <consumer>
           <sourceCid>10862037</sourceCid>
           <preferences>
              <preference>
                 <CONTENTTYPE>Consent</contentType>
                 <value>E</value>
                 <DISTRIBUTIONCHANNEL>test@test.com</distributionChannel>
              </preference>
           </preferences>
              <deliveryPoints>
                 <brandIdDeliveryPoint>
                    <accountNum>10862036</accountNum>
                 </brandIdDeliveryPoint>
           </deliveryPoints>
        </consumer>
    </consumers>
</root>

0 个答案:

没有答案