How to resolve the error "SemanticError: Missing yield clause."? - nebula-graph

as titled, NebulaGraph version: v3.2.0, when I execute the statement:
find all path from "bob" to "candy" over follow;
Error report: SemanticError: Missing yield clause.
How to resolve this?

Related

MariaDB SphinxSE not accepting weights parameter

If I try this query:
select * FROM sphinx.products where `query` = "test";
it works. But if I try to give it weights it returns an error:
select * FROM sphinx.products where `query` = "test;sort=extended:#weight DESC;weights=3,1,1,1";
Fails with error:
Error in query (1430): There was a problem processing the query on the foreign data source.
Data source error: searchd error: invalid deprecated unordered_weight count 4 (expe
(Error reported by MariaDB gets truncated there, but I believe it says "expecting 0")
And:
select * FROM sphinx.products where `query` = "test;sort=extended:#weight DESC";
Fails with error:
Error in query (1430): There was a problem processing the query on the foreign data source.
Data source error: searchd error: index 'sku_products': sort-by attribute '#weight'
(Again, error returned by SphinxSearch gets truncated by MariaDB)
All the documentation I find about SphinxSE tells me to query the index this way, yet it does not work, but nobody in the Internet seem to have met this error since nobody is asking about this anywhere...
Am I doing something wrong?
Well, the option weights= didn't work, but it accepted fieldweights=sku,90,partnumber,30,barcode,20,name,10.
(I.e., fieldweights=<field1_name>,<field1_weight>,...)
Results came ordered by weight even without specifying sort=extended:#weight DESC, so I dodged both errors and got what I needed.
Hope this helps anyone in the same situation.

using "project" with "select" in gremlin-javascript is throwing error

I have a simple query which gives me expected result when i run it on console, but fails when i run it in aws-neptune DB using gremlin node.js driver/ gremlin-javascript.
query running successfully in console
g.V().hasLabel('item').project('id').by(id).select(values)
==>[item1]
==>[item2]
==>[item3]
I tried to ran same query in gremlin-javascript using import "gremlin.process.t"
g.V().hasLabel('item').project('id').by(gremlin.process.t.id).select(gremlin.process.t.values)
But i get following error "detailedMessage":"null:select([null])"}
error Error: Server error: {"requestId":"0521e945-04fb-4173-b4fe-0426809500fc","code":"InternalFailureException","detailedMessage":"null:select([null])"} (599)
What is the correct way to use project with select in gremlin-javascript ??
Note that values is not on T it's on Column:
gremlin> values.class
==>class org.apache.tinkerpop.gremlin.structure.Column$2
Therefore, you need to reference that enum in Javascript:
const t = gremlin.process.traversal.t
const c = gremlin.process.traversal.column
g.V().hasLabel('item').
project('id').
by(t.id).
select(c.values)
You can read about common imports for gremlin-javascript here.

RMySQL cannot insert new data

I try to insert new data to MySQL using RMySQL. Only for this case I always fail and always get the same warning message. The message was:
Warning message:
In value[[3L]](cond) : corrupt resultSet, missing fieldDescription
Although it just a warning, I never find my data show on MySQL.
Complete code and warning message shown as below:
Please advise any solution.
enter image description here
Oh, Please, don't forget to un-comment library(RMySQL) [ line : 1 ].
&
Please, add query in lieu of "select age from Customers". [ line : 9 ].
:)
Maybe, it'll works fine.
[ Sorry, for my bad English. ]

Teradata 3706 error: OTRANSLATE

I am using Teradata SQLA 14.01 and want to use the OTRANSLATE function, but it is not working. I have checked the DBC.FunctionsV table to ensure that the function is defined in the system, which it is. However, even when I use the sample code;
SELECT OTRANSLATE('TD13.0 is the current database version','3', '4');
I am faced with a 3706 error:
Syntax error: expected something between '(' and the string 'T'
keyword.
All help will be greatly appreciated!!

sqlite3 syntax error that I cannot find

The line of code is the following:
conn.execute('''CREATE TABLE summury (set , avarageApproxAlg1Opt, optFound, maxApprox, range1, range2, range3, range4);''')
It's in a Python script and it complains about my sintax:
sqlite3.OperationalError: near "set": syntax error
I'm not experienced in SQL and I cannot understand what's wrong there.
Sorry for the quality of the question, but.. any help?
Thanks in advance.
set is a keyword in SQL. Either rename the column, or put it in "double quotes".

Resources