SET TestVariable = 'Test1, Test2, Test3, Test4';
SELECT SPLIT($TestVariable,',');
--results
[ "Test1", " Test2", " Test3", " Test4" ]
--desired results
('Test1', 'Test2', 'Test3', 'Test4')
Snowflake Functions used with hyperlink to documentation:
SELECT
'('||LISTAGG(''''||TRIM(value)||'''',',')||')' VOLIA
FROM
TABLE(SPLIT_TO_TABLE('Test1, Test2, Test3, Test4', ','))