Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array functions/intersect #4151

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

frederick-grumieaux
Copy link

Pull Request Template

Description

Added support for the SetIntersect function in cosmos db.
Can now be called using IEnumerable.Intersect(a, b);
Example: docs => docs.tags.intersect(new string[] { "a", "b" });
Should result in SQL statement:
SELECT VALUE SetIntersect(root["tags"], ["a", "b"]) FROM root

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Closing issues

To automatically close an issue: closes #IssueNumber

other remarks

It seems that the cosmos db emulator does not yet support the SetIntersect method.

@frederick-grumieaux
Copy link
Author

@microsoft-github-policy-service agree

Note: the emulator does not yet support SetIntersect. Probably it should be updated as well...
using: .\UpdateContracts.ps1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants