Giter VIP home page Giter VIP logo

Can't use `times()` and all of other math WOQL methods as described in the documentation with error: `SERVER ERROR: The query you have sent has no viable mode. Some variables can not be bound under any reordering.` about terminusdb HOT 2 OPEN

alexander-mart avatar alexander-mart commented on June 14, 2024
Can't use `times()` and all of other math WOQL methods as described in the documentation with error: `SERVER ERROR: The query you have sent has no viable mode. Some variables can not be bound under any reordering.`

from terminusdb.

Comments (2)

alexander-mart avatar alexander-mart commented on June 14, 2024

There is no mention of evaluate here:
https://github.com/terminusdb/terminusdb/blob/main/src/core/query/json_woql.pl

Or there:
https://github.com/search?q=repo%3Aterminusdb%2Fterminusdb%20evaluate&type=code

But this is answer to why is evaluate was not found:
https://github.com/terminusdb/terminusdb-client-js/blob/main/lib/woql.js#L487

because only eval WOQL-method is exist, and evaluate() is only alias to eval()

from terminusdb.

alexander-mart avatar alexander-mart commented on June 14, 2024

Attempt to call evaluate() in chain-style from limit():

WOQL.limit(100).evaluate(WOQL.times(2,3), "v:result")

Return query-parser error:
SYNTAX ERROR: WOQL.limit(...).evaluate is not a function

But

WOQL.limit(100).eval(WOQL.times(2,3), "v:result")

Return server error:
SERVER ERROR: The query you have sent has no viable mode. Some variables can not be bound under any reordering.

👉 Shold we put it in a separate issue?

from terminusdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.