azure-sdk-for-java
azure-sdk-for-java copied to clipboard
Support Select in Table service layer
The Table service layer provides the SelectFields property on the QueryEntitiesOptions, to allow for queries to contain $select. However, when using TableRestProxy.queryEntities, the request will fail when those properties are set:
400 Bad Request: One of the request inputs is not valid.
This appears to be because the request sets this header:
DataServiceVersion: 1.0;NetFx
which is not set when using the Table client layer to make a similar request.
(Edited to remove OrderBy, which is not supported in Azure Table: http://msdn.microsoft.com/en-us/library/dd135725.aspx)
Select Supported for version 2011-08-18 and newer. Projection is supported. For more information, see Writing LINQ Queries.