Самый простой способ - использовать TRY_TO_NUMERIC (), которая возвращает числовое значение, если оно конвертируемо, и NULL в противном случае.Так, например:
create table xx(s string);
insert into xx values('hello_there'), ('1234'), ('look_out'), ('452');
select s, -- original column
try_to_numeric(s) snum, -- numeric version of the column
case when snum IS NULL then s else NULL end sstr -- non-numeric string
from xx;
![Here are the results](https://i.stack.imgur.com/irC8L.png)