question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Group by queries not parsing on non-windows machines, or 32-bit processes - sends to gateway but errors

See original GitHub issue

Describe the bug When processing a group by query, the call to CustomTypeExtensions.ByPassQueryParsing() returns a true for all non-windows machines, which then sends the query off to the gateway. The gateway then reports an error: System.ArgumentNullException: Value cannot be null. Parameter name: orderedAliases

To Reproduce Run a CosmosDB query on a non-windows machine, or a process that is only 32-bit, that contains the group by clause.

Expected behavior Query returns data.

Actual behavior The following error is reported: System.ArgumentNullException: Value cannot be null. Parameter name: orderedAliases

Environment summary SDK Version: 3.4.0 OS Version: MacOS or Microsoft Windows NT 10.0.14393.0 with 32-bit process

Additional context System.ArgumentNullException: Value cannot be null. Parameter name: orderedAliases at Microsoft.Azure.Cosmos.Query.Core.ExecutionComponent.GroupByDocumentQueryExecutionComponent…ctor(CosmosQueryClient cosmosQueryClient, IReadOnlyDictionary2 groupByAliasToAggregateType, IReadOnlyList1 orderedAliases, Boolean hasSelectValue, IDocumentQueryExecutionComponent source) at Microsoft.Azure.Cosmos.Query.Core.ExecutionComponent.GroupByDocumentQueryExecutionComponent.CreateAsync(CosmosQueryClient cosmosQueryClient, String requestContinuation, Func2 createSourceCallback, IReadOnlyDictionary2 groupByAliasToAggregateType, IReadOnlyList1 orderedAliases, Boolean hasSelectValue) at Microsoft.Azure.Cosmos.Query.PipelinedDocumentQueryExecutionContext.<>c__DisplayClass7_3.<<CreateHelperAsync>b__2>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at Microsoft.Azure.Cosmos.Query.PipelinedDocumentQueryExecutionContext.CreateHelperAsync(ExecutionEnvironment executionEnvironment, CosmosQueryClient queryClient, QueryInfo queryInfo, Int32 initialPageSize, String requestContinuation, Func2 createOrderByQueryExecutionContext, Func2 createParallelQueryExecutionContext) at Microsoft.Azure.Cosmos.Query.PipelinedDocumentQueryExecutionContext.CreateAsync(ExecutionEnvironment executionEnvironment, CosmosQueryContext queryContext, CrossPartitionInitParams initParams, String requestContinuationToken, CancellationToken cancellationToken) at Microsoft.Azure.Cosmos.Query.CosmosQueryExecutionContextFactory.CreateSpecializedDocumentQueryExecutionContextAsync(CosmosQueryContext cosmosQueryContext, InputParameters inputParameters, PartitionedQueryExecutionInfo partitionedQueryExecutionInfo, List1 targetRanges, String collectionRid, CancellationToken cancellationToken) at Microsoft.Azure.Cosmos.Query.CosmosQueryExecutionContextFactory.CreateFromPartitionedQuerExecutionInfoAsync(PartitionedQueryExecutionInfo partitionedQueryExecutionInfo, ContainerQueryProperties containerQueryProperties, CancellationToken cancellationToken) at Microsoft.Azure.Cosmos.Query.CosmosQueryExecutionContextFactory.CreateItemQueryExecutionContextAsync(CancellationToken cancellationToken) at Microsoft.Azure.Cosmos.Query.CosmosQueryExecutionContextFactory.ExecuteNextAsync(CancellationToken cancellationToken)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
bchong95commented, Nov 17, 2019

Gateway hotfix is deployed.

0reactions
j82wcommented, Nov 12, 2019

@BharathPalanivelu the issue is the ServiceInterop.dll is not getting loaded in the App Service so it is falling back to the gateway to get the query plan. Please make sure the ServiceInterop.dll is in the same folder as the application. Please create a new issue if you want to further debug so we keep the discussion focused on the original issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sql - Error related to only_full_group_by when executing a ...
In MySQL 5.7 they set a property that requires all non-aggregate fields in a query be a GROUP BY. So a query like...
Read more >
Windows 11 22H2 - Cant connect to a RDS server after ...
Connecting directly to another computer/server with mstsc.exe (no broker or gateway) works fine. The only workaround for now is to copy c:\ ...
Read more >
Fixed issues | Citrix Virtual Apps and Desktops 7 1912 LTSR
The issue occurs when you select a Delivery Group under Multi-session OS Machines. The issue occurs only with the In Use column.
Read more >
Troubleshooting Patch Manager - AWS Documentation
Problem: When you run AWS-RunPatchBaseline , patching fails with one of the following errors. IOError: [Errno 2] No such file or directory: 'patch-baseline- ......
Read more >
Troubleshooting Workspace ONE Assist
Right-click the installer file, svrcfg.exe and select Run as administrator. Note: Executing the ServiceConfig file does not trigger the re- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found