Azure / azure-sdk-for-rust

This repository is for active development of the *unofficial* Azure SDK for Rust. This repository is *not* supported by the Azure SDK team.
MIT License
685 stars 232 forks source link

ORDER BY doesn't work #1586

Open kateEmk opened 6 months ago

kateEmk commented 6 months ago

My goal is to get sorted items from NoSQL Cosmos DB after my request. Here is the part of my Rust code:

let mut query_builder = get_collection_client(collection_name)?
        .query_documents(Query::new(
            "SELECT * FROM dwellings c ORDER BY c.price".to_string())
        )
        .max_item_count(item_count);

But result of the query: server returned error status which will not be retried: 400. If I run this query exactly in Azure CosmosDB Data Explorer, query returns expected result.