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

Cosmos: Coalesce works on undefined values rather than nulls #16152

Closed
smitpatel opened this issue Jun 19, 2019 · 1 comment · Fixed by #16184
Closed

Cosmos: Coalesce works on undefined values rather than nulls #16152

smitpatel opened this issue Jun 19, 2019 · 1 comment · Fixed by #16184
Assignees
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Milestone

Comments

@smitpatel
Copy link
Member

c["Region"] ?? "ZZ" gives value of ZZ only if c does not contain key Region. If c["Region"] has value of null the expression returns null rather than ZZ

@smitpatel smitpatel mentioned this issue Jun 19, 2019
82 tasks
@divega divega added this to the 3.0.0 milestone Jun 20, 2019
@divega
Copy link
Contributor

divega commented Jun 20, 2019

We can consider blocking the translation, or doing the same translation we use for ternary operator.

@smitpatel smitpatel added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Jun 21, 2019
smitpatel added a commit that referenced this issue Jun 21, 2019
Part of #16133
Part of #16144
Resolves #16152
Part of #15662
smitpatel added a commit that referenced this issue Jun 21, 2019
Part of #16133
Part of #16144
Resolves #16152
Part of #15662
smitpatel added a commit that referenced this issue Jun 21, 2019
Part of #16133
Part of #16144
Resolves #16152
Part of #15662
smitpatel added a commit that referenced this issue Jun 21, 2019
Part of #16133
Part of #16144
Resolves #16152
Part of #15662
@ajcvickers ajcvickers modified the milestones: 3.0.0, 3.0.0-preview7 Jul 2, 2019
@ajcvickers ajcvickers modified the milestones: 3.0.0-preview7, 3.0.0 Nov 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. type-bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants