-
Notifications
You must be signed in to change notification settings - Fork 330
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
Bug in FanoutSearch with net6 #359
Comments
@alenas - I am looking at this right now; what Test Case failed for you? |
Most in FanoutSearch.UnitTest.JSONDSLTest (and 2). I ran from Visual Studio compiled with .net 6.0. And I see there are more JSON issues when using Newtonsoft version 13... |
I changed language version to 10 on FanoutSearch (as I left only .net 6 compilation) and I that's why that line is broken for me. but seems like your and_pred is null for similar reasons, I will see how it works in my project. |
Here is the offending outer code block: The call to FanoutSearchDescriptor fails: FanoutSearchDescriptor fanoutSearch_desc = new FanoutSearchDescriptor(queryPath, queryObject); Here is the JsonQuery content that fails: These LIKQ JsonQuery statements are slightly different: The first one fails while the second one works. It looks like the results field is the first statement is expecting a Conditional while the second one is not. |
Something is not right with the JSON parsing logic. I don't use JsonDSL but do use LambdaDSL and KnowledgeGraph LIKQ dialects and have not had any problems with the .NET 6 version. |
I actually changed few other files as well: file: at the moment all my test pass. but there is one problem, as I think that JSON message that goes to the server is still not good. var search = KnowledgeGraph.StartFrom($@"{{""type"":""Person"",""match"":{{""text"":""{word}""}}}}";); |
Yeah - I totally don't use Json in any KnowledgeGraph productions:
This works just fine for me:
|
@alenas not all LIKQ language dialects will process json statements. I am just looking at Lambda DSL, and Json DSL processing as there are some test case failing. |
@alenas I think I have the fix in place; will need to re-run the existing tests and add a few new tests and the changes to the JSON parser do require some changes to the code. |
File:
src\Modules\LIKQ\FanoutSearch\QueryLanguage\ExpressionBuilder.cs
line 22 should be like this (with a type), otherwise it errors out and some unit tests do not pass:
private static readonly MethodInfo s_string_contains = typeof(String).GetMethod("Contains", new Type[] { typeof(String) });
The text was updated successfully, but these errors were encountered: