1

I am trying to access a table created through Phoenix from Hbase. The value for a REQUEST column is JSON string and I want to write a phoenix query to search for a particular key e.g. "merchant" from it and as a result want its distinct value back and total count.

How can I do this using Phoenix query?

ColumnName Value
KEY ABC-123
CODE 123
REQUEST {"notification":{"source":"ABC","device":"Android"},"template":{"job":"Real","merchant":"ABC"}}

Expected Output: merchant count(*) ABC 1

asked Aug 25, 2023 at 1:11

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.