Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!

Qlik Talend Studio: Writing an XML file as a value into a Variant type column in a Snowflake table in a Studio Job

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
TalendSolutionExpert
Contributor II
Contributor II

Qlik Talend Studio: Writing an XML file as a value into a Variant type column in a Snowflake table in a Studio Job

Last Update:

Dec 19, 2025 12:32:16 AM

Updated By:

Shicong_Hong

Created date:

Dec 28, 2021 11:14:17 AM

Attachments

This article shows how to write an XML file as a value into a Variant type column of a Snowflake table. An example of the Job is available in the sample job.zip file attached in this KB.

  1. Create a table with a Variant type column in the Snowflake database using the following command:

    CREATE TABLE TEST1006
        (COL_HEADER VARIANT);
  2. In Studio, use the PreparedStatement feature of the tSnowflakeRow component to read the input data as a String, and write it to the Snowflake Variant type column.

    0EM5b000005c7Hb.png


     
  3. Configure the tFileInputDelimited component to read the XML file.

    0EM5b000005c7Hl.png

    0EM5b000005c7Ie.png

     

    The tFileInputDelimited schema looks like this:

    0EM5b000005c7IU.png


     
  4. Configure the tSnowflakeRow component to load the data into the Snowflake table.

    0EM5b000005c7Hv.png

     
    1. Enter the following command in the Query text box:

      "INSERT INTO TEST1006 SELECT PARSE_XML(?);"
    2. Under Advanced settings, select the Use PreparedStatement check box. Input values for the Parameter Index, Parameter Type, and Parameter Value.

      For more information, see the tSnowflakeRow Standard properties documentation available in Talend Help Center.

      0EM5b000005c7JD.png

       

      The tDBRow schema looks like this:

      0EM5b000005c7Jh.png


       
  5. Run the Job, and review the output data in Snowflake.

    0EM5b000005c7K1.png

Labels (3)
Version history
Last update:
‎2025-12-19 12:32 AM
Updated by: