MSCEWI2083

Not able to transform two or more complex Select clauses at a time

Severity

Medium

Description

SnowConvert is not able to transform two or more complex SELECT clauses, as it is necessary to map them to a CTE or composite FROM clause, which causes the mapped code to not compile or enter into a logical cycle.

What do we consider a SELECT complex clause?

Those that required to be mapped to a CTE or composite FROM clause such as NORMALIZE, EXPAND ON, or RESET WHEN.

Example code

Input code

SELECT 
  NORMALIZE emp_id, 
  duration 
FROM 
  project EXPAND ON duration AS bg BY ANCHOR ANCHOR_SECOND;

Output code

The transformation of the EXPAND ON clause is performed however the NORMALIZE clause is commented on due to the explanation above.

Recommendations

Last updated