have a problem I can't solve directly using Snowflake docs:
I have a strings like 'abc\def'
need to split it to 'abc', 'def'
tried: split_to_table('abc\def', '\\') - error
strtok_to_array('abc\def', '\\') ==> [ "abcdef" ]
also, I've tried to replace it to better delimiter prior the split
replace('abc\cde','\\','_another_symbol_'); ==> abccde REGEXP_REPLACE('abc\cde','$$\$$','_another_symbol_') ==> abccde_another_symbol
but it doesn't work
any idea how to solve that?
abc\defa value from the table or just a literal string you're playing with?. If it was properly escaped, it must have been loaded in asabc\\def, which would work withselect split_part('abc\\def','\\',1)abc\deforabcdef?