MSCEWI4071

CURRENT_USER function does not support a user ID as a parameter.

This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.

Severity

Medium

Description

This EWI is added when functions like SUSER_NAME or SUSER_SNAME contain the user identifier as a parameter because this last one is not supported in the CURRENT_USER function in Snowflake.

Input Code:

SELECT SUSER_NAME(0x010500000000000515000000a065cf7e784b9b5fe77c87705a2e0000);

Output Code:

SELECT
CURRENT_USER() /*** MSC-WARNING - MSCEWI4071 - User ID parameter used in SUSER_NAME function is not supported in CURRENT_USER function and it was removed. ***/

Recommendations

Last updated