How to use decode function? #2158
Answered
by
ngjaying
Gaurav-Harman
asked this question in
Q&A
-
I am trying to decode a json as below which should return me but decode function is returning |
Beta Was this translation helpful? Give feedback.
Answered by
ngjaying
Aug 7, 2023
Replies: 1 comment
-
The decode function(https://ekuiper.org/docs/en/latest/sqls/functions/transform_functions.html#decode) now is only used to decode base64 string to |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Gaurav-Harman
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The decode function(https://ekuiper.org/docs/en/latest/sqls/functions/transform_functions.html#decode) now is only used to decode base64 string to
bytea. It is not used to decode a json string. It looks like you need
cast(decode(msg, "base64"), "string")