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

Query: Test Select_GetValueOrDefault_on_DateTime_with_null_values fails #13004

Closed
smitpatel opened this issue Aug 14, 2018 · 0 comments
Closed
Labels
area-query closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. punted-for-3.0 type-bug
Milestone

Comments

@smitpatel
Copy link
Member

smitpatel commented Aug 14, 2018

query plan:

(QueryContext queryContext) => IEnumerable<DateTime> _InterceptExceptions(
|__ source: IEnumerable<DateTime> _ShapedQuery(
|   |__ queryContext: queryContext, 
|   |__ shaperCommandContext: SelectExpression: 
|   |       SELECT [o].[OrderDate]
|   |       FROM [Customers] AS [c]
|   |       LEFT JOIN [Orders] AS [o] ON [c].[CustomerID] = [o].[CustomerID], 
|   |__ shaper: (QueryContext queryContext | TransparentIdentifier<ValueBuffer, ValueBuffer> t1) => (DateTime)!(t1.Inner.IsEmpty) ? Nullable<DateTime> TryReadValue(t1.Inner, 0, Order.OrderDate) : default(Nullable<DateTime>)?.GetValueOrDefault(1/1/1753 12:00:00 AM)), 
|__ contextType: TestModels.Northwind.NorthwindRelationalContext, 
|__ logger: DiagnosticsLogger<Query>, 
|__ queryContext: Unhandled parameter: queryContext)

Exception:

Nullable object must have a value.
@maumar maumar changed the title Query: Test Select_GetValueOrDefault_on_DateTime_with_null_values fails in memory Query: Test Select_GetValueOrDefault_on_DateTime_with_null_values fails Aug 14, 2018
@ajcvickers ajcvickers added this to the 3.0.0 milestone Aug 17, 2018
@ajcvickers ajcvickers modified the milestones: 3.0.0, Backlog May 10, 2019
@smitpatel smitpatel modified the milestones: Backlog, 3.1.0 Dec 10, 2019
@smitpatel smitpatel added closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. and removed add-regression-test try-on-latest labels Dec 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-query closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. punted-for-3.0 type-bug
Projects
None yet
Development

No branches or pull requests

3 participants