GraphEngine: FanoutSearch.FanoutSearchQueryException Syntax error + Expecting 'VisitNode'

My Environment: VS2015 update3 GraphEngine.Core 1.0.8482.0 (From Nuget.org) GraphEngine.LIKQ 1.0.8784.0 (From Nuget.org)

Problem 1, In LambdaDSL.Evaluate method, If I give StartFrom a start node object instead of the long cellid, everyting is ok, but when I give it a long cellid, the exception throw.

My Code Part:

long cellid = HashHelper.HashString2Int64(startNode.Name); var query = “MAG.StartFrom(3841074542558778930).FllowEdge("Friends").VisitNode(Action.Return);”; var result = LambdaDSL.Evaluate(query);

It throw the exception as below:

“FanoutSearch.FanoutSearchQueryException”类型的未经处理的异常在 FanoutSearch.dll 中发生 其他信息: Expecting ‘VisitNode’: MAG.StartFrom(3841074542558778930).FllowEdge(“Friends”)

Problem 2, In mod.LambdaQuery method, if I give StartFrom a positive number cellid value, it’s ok. but when I give it a negative number of cellid value, the exception throw. I use HashHelper.HashString2Int64(node.Name) to generated the cellid, some id are positive and some are negative.

My Code Part:

var query2 = @" MAG .StartFrom(new List<long>{-6320363468015968671}) .FollowEdge(""Friends"") .VisitNode(Action.Return,new List<string>{""Name""}); "; var mod = Global.CommunicationInstance.GetCommunicationModule<FanoutSearchModule>(); var data=mod.LambdaQuery(query2);

It throw the exception as below:

“FanoutSearch.FanoutSearchQueryException”类型的未经处理的异常在 FanoutSearch.dll 中发生 其他信息: Syntax error: -6320363468015968671

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 24 (15 by maintainers)

Commits related to this issue

Most upvoted comments

@BenDerPan please try remove the offending packages from your project and try add them again. Yeah we should release it to nuget… We have an internal process for release management, hang on tight while we make our way through it… 😃

If your add correct namespace, then it may caused that your tsl project not build correctly, you can have a check if there is a folder “GeneratedCode” under ‘obj’ folder of your model project, if no, then you do not setup your project correct.

Just create a class library project, create a .tsl file, then mark it as TslCodeGen as following:

  <ItemGroup>
    <TslCodeGen Include="MyTSL.tsl" />
  </ItemGroup>

then add GE package dependency.

Thanks for reporting, and that definitely looks like a bug! I will look into this after I got my tests up and running. @chaosddp I think we should change the assembly name to match the package name as a workaround. What do you think?