Forum Discussion

kkishore's avatar
kkishore
New Contributor III
4 years ago
Solved

Zip file write snap creating zip file with source folder structure , how to avoid file structure

Hi Team, I am just reading the file from source location and writing the zip file in sldb, but it is creating the zip file with source structure when i unzip. source file path is : /home/data/int...
  • GanguP's avatar
    GanguP
    2 years ago

    This worked perfectly fine. I do have questions though,
    1) will this methodology work for multiple tags(arrays)?
    2) Adding the second JSON splitter makes it easier,  I did provide a small number of columns in the sample but it has lot morefields. If we have to add 100's of fields it becomes tedious.  Is there another option or an easier way to do this?

     



  • koryknick's avatar
    2 years ago

    GanguP - rather than specify the individual columns to retain, you can select the "Include scalar parents" checkbox.  As long as the element is a primitive datatype (i.e. not array or object), it will automatically let it pass through.