Skip to content

How to use decode function? #2158

Answered by ngjaying
Gaurav-Harman asked this question in Q&A
Discussion options

You must be logged in to vote

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")

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants