SHOW USERS command: NULL values replace default values in output¶
Attention
This behavior change is in the 2024_08 bundle.
For the current status of the bundle, refer to Bundle History.
When this behavior change bundle is enabled, the output of the SHOW USERS command changes as follows:
- Before the change:
Certain output columns show default values (such as an empty string or false) rather than actual NULL values. This behavior occurs both when the current user does not have access to the column value and when the property for the user in question is not defined.
For example, create a user named
nulltest:CREATE OR REPLACE USER nulltest DISPLAY_NAME = 'iamnull';
The SHOW USERS command for this new user returns an empty string for undefined properties such as
first_name,last_name, andemail.- After the change:
NULL is used to represent expected NULL values, instead of an empty string,
false, and so on. For example, create a user namednulltest:CREATE OR REPLACE USER nulltest DISPLAY_NAME = 'iamnull';
The SHOW USERS command for this new user returns NULL values for undefined properties such as
first_name,last_name, andemail.This change affects the following SHOW USERS output columns:
namecommentdisplay_nameemailfirst_namelast_namehas_passwordhas_rsa_public_keyhas_mfanamespacewarehousedefault_rolelogin_namedisabledsnowflake_lockmust_change_passwordmins_to_unlockdays_to_expirymins_to_bypass_mfadefault_secondary_roles
Ref: 1798