SSC-FDM-TS0016

XML columns in Snowflake might have a different format

Important Notice: Migration of Documentation Website

Please be advised that our documentation website is currently undergoing a migration to a new platform. To ensure you have access to the most up-to-date information, we kindly request that you visit our new documentation website located at:

Official Snowflake Snowconvert Documentation

For any immediate assistance or if you encounter any issues, please contact our support team at [email protected].

Thank you for your understanding.

Description

This warning is added when an SQL Server FOR XML clause is transformed to its Snowflake equivalent. It is added because columns in XML could be different.

Code Example

Given the following table called employee as an example.

Id
Name
Hint

1

Kinslee Park

Developer

2

Ezra Mata

Developer

3

Aliana Quinn

Manager

Input Code:

IN -> SqlServer_01.sql
SELECT
  	e.id,
  	e.name as full_name,
  	e.hint
  FROM
  	employee e
  FOR XML PATH;

Output Code:

OUT -> SqlServer_01.sql
SELECT
	--** SSC-FDM-TS0016 - XML COLUMNS IN SNOWFLAKE MIGHT HAVE A DIFFERENT FORMAT **
	FOR_XML_UDF(OBJECT_CONSTRUCT('id', e.id, 'full_name', e.name, 'hint', e.hint), 'row')
FROM
	employee e;

Recommendations

  • No additional user actions are required; it is just informative.

  • If you need more support, you can email us at [email protected]

Last updated