Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Query: Fixes logic to determine whether to use distributed query by a…
…dding a check for gateway connection mode (#5024) ## Description This changes the logic for determining whether to use the distributed query dedicated gateway. With this PR, we check both the **AZURE_COSMOS_DISTRIBUTED_QUERY_GATEWAY_ENABLED** environment variable **and** the connection mode to determine whether to use the distributed query dedicated gateway. If the environment variable is set to **True** **and** the connection mode is **gateway**, then we **will** use the dedicated gateway. If the connection mode is **direct**, we should not use the distributed query dedicated gateway. ## Type of change Please delete options that are not relevant. - [X] Bug fix (non-breaking change which fixes an issue) - [] New feature (non-breaking change which adds functionality) - [] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [] This change requires a documentation update --------- Co-authored-by: neildsh <[email protected]>
- Loading branch information