-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Failing specification tests in SQL Server Compact (SQLCE) provider #6696
Comments
@ErikEJ some comments on this:
|
Hi @divega thanks for your comments. Re 1: So you suggest I override "GenerateOrdering" and replace the SQL in this line https://github.com/aspnet/EntityFramework/blob/dev/src/Microsoft.EntityFrameworkCore.Relational/Query/Sql/DefaultQuerySqlGenerator.cs#L399 with for example:
Re 2: I think you misunderstood the previous conversation - I have not been smart enough to figure out how to implement the IN solution - would be very grateful for any suggestions/code samples to help me on the way! (I did test the IN solution with raw SQL, and that was what I reported as "working") re 3: If OUTER APPLY works, how would I start using it - you seem to be very unsure?? Could you use it in EF.Relational ?? |
@ErikEJ Re 2: Re 3: For the case of outer apply, you will probably need to transform |
Note to self: Overrdie "SqlTranslatingExpression" and force client eval, if Expression type is not supported |
With #6911 Now it is possible for providers to override |
@smitpatel Thanks sooo much for all your help with this! As you can see above, we have made great progress already. Any idea when #6911 will be avilable in the aspnet-dev feed on myget? |
I have added a DbContextOption that allows users to work around this on a case by case basis, so closing for now, thanks for help @divega and @smitpatel |
Reopening so that we remember discussing in our next triage if there is anything we want to do for scalar subqueries (like I described in #6696 (comment)) in the future. |
Pinging @divega |
Discussed again in triage. We're still not going to do anything specific in the core code, but we could consider contributing to the CE provider under the right set of circumstances. We will follow up with @ErikEJ if we decide this makes sense. |
Steps to reproduce
Run the relational specification tests against the SQL Server Compact database engine using the SQL CE EF Core provider
The issue
The tests listed below are failing with this error message:
Error is: System.Data.SqlServerCe.SqlCeException : There was an error parsing the query. [ Token line number = 5,Token line offset = 5,Token in error = SELECT ]
This is due to limitations in the SQL Server Compact engine, as discussed here:
#6145 (comment)
From AsyncQueryTestBase:
OrderBy_correlated_subquery_lol()
Where_query_composition()Where_shadow_subquery_first()SelectMany_primitive_select_subquery()
From ComplexNavigationsQueryTestBase:
Join_navigation_key_access_optional()Join_navigation_in_inner_selector_translated_to_subquery()Join_navigations_in_inner_selector_translated_to_multiple_subquery_without_collision()Join_navigation_translated_to_subquery_non_key_join()Join_navigation_translated_to_subquery_self_ref()Where_navigation_property_to_collection2
Where_navigation_property_to_collection_of_original_entity_type
Correlated_subquery_doesnt_project_unnecessary_columns_in_top_level_joinFrom GearsOfWarQueryTestBase
Where_enum_has_flag_subquery
Where_count_subquery_without_collisionWhere_subquery_booleanJoin_navigation_translated_to_subquery_composite_keyFrom IncludeTestBase
Include_collection_order_by_collection_columnInclude_collection_order_by_subquery
Then_include_collection_order_by_collection_column
From QueryNavigationsTestBase
Project_single_scalar_value_subquery_is_properly_inlined
Select_collection_FirstOrDefault_project_single_column2
Select_collection_FirstOrDefault_project_single_column1
Select_count_plus_sum
Collection_orderby_nav_prop_count
Collection_orderby_nav_prop_count()
Collection_select_nav_prop_all()
Collection_select_nav_prop_any()
Collection_select_nav_prop_predicate()
Collection_select_nav_prop_count()
Collection_select_nav_prop_long_count()
Collection_select_nav_prop_sum()
Collection_where_nav_prop_count()
Collection_where_nav_prop_count_reverse()
Collection_where_nav_prop_sum()
Collection_where_nav_prop_sum_async()
Select_multiple_complex_projections()
From QueryTestBase
SelectMany_primitive_select_subquery
Where_query_compositionWhere_query_composition_entity_equality_one_element_FirstOrDefaultWhere_query_composition_entity_equality_no_elements_FirstOrDefaultWhere_query_composition_entity_equality_multiple_elements_FirstOrDefaultWhere_shadow_subquery_firstSelect_Where_Subquery_Deep_First
OrderBy_any
OrderBy_correlated_subquery_lol()
OrderBy_correlated_subquery_lol2
Does_not_change_ordering_of_projection_with_complex_projections
Further technical details
EF Core version: 1.1.0-alpha1-22167
Operating system: Windows 10
Visual Studio version: (e.g. VS 2013 or n/a): VS 2015 Update 3
@smitpatel @divega - thanks for taking a second look at this, any help/advice/gist/PRs very much appreciated - I think I am not smart enough to figure this out without your help 😄
The text was updated successfully, but these errors were encountered: