I have a column which is in varbinary. I tried
select cast(msg as varchar)
from table
WHERE DATE(datestr) > CURRENT_DATE - INTERVAL '7' DAY
which threw
Cannot cast row(row1 varbinary) to varchar
and when I try
from table
WHERE DATE(datestr) > CURRENT_DATE - INTERVAL '7' DAY
I get
Unexpected parameters (row(row1 varbinary)) for function from_utf8. Expected: from_utf8(varbinary, varchar(x)) , from_utf8(varbinary, bigint) , from_utf8(varbinary) "
I also tried,
select from_utf8(msg)
from table
WHERE DATE(datestr) > CURRENT_DATE - INTERVAL '7' DAY
which threw
Unexpected parameters (row(row1 varbinary)) for function from_utf8. Expected: from_utf8(varbinary, varchar(x)) , from_utf8(varbinary, bigint) , from_utf8(varbinary) "
I have tried several things online but doesn't have seemed to help. Can anyone help me out?