Docs: How to ORDER BY or GROUP BY json data

Created on 27 Nov 2018  路  7Comments  路  Source: cockroachdb/docs

To apply the ORDER BY or GROUP BY clauses to json data, you must use the ->> operator to cast the result to a string. We could add an example to https://www.cockroachlabs.com/docs/v2.1/jsonb.html.

This came up on the forum: https://forum.cockroachlabs.com/t/order-by-and-group-by-clauses-on-jsonb-data/2211

A-sql O-external P-1 T-more-examples-needed good-first-issue hacktoberfest

All 7 comments

@Amruta-Ranade, Can I give it a try? :-)
Thanks.

Go for it!

@Amruta-Ranade I have created a PR, #8679 for this issue. Could you please look into it and let me know the further steps?
Thanks,
Shiwanee :-)

Hi @Amruta-Ranade ! I have implemented the review comments!

Thanks,
Shiwanee

Thank you so much @Amruta-Ranade and @ericharmeling :-)

Shiwanee

Thanks for your contribution, @Shiwanee !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dankellycockroach picture dankellycockroach  路  3Comments

yzdocs picture yzdocs  路  6Comments

dbist picture dbist  路  5Comments

sploiselle picture sploiselle  路  3Comments

dbist picture dbist  路  5Comments