You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String vectorSql= "SELECT (embedding <=> '[3,1,2]') AS cosine_similarity FROM items;";
with error message:
Exception in thread "main" net.sf.jsqlparser.JSQLParserException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "<=" <OP_MINORTHANEQUALS>
at line 1, column 19.
Was expecting one of:
")"
"."
"::"
"["
"^"
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:350)
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:123)
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:89)
at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:62)
at cn.xlink.codeless.data.worker.restful.test.SqlTest.parseInsert(SqlTest.java:293)
at cn.xlink.codeless.data.worker.restful.test.SqlTest.main(SqlTest.java:71)
Caused by: java.util.concurrent.ExecutionException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "<=" <OP_MINORTHANEQUALS>
at line 1, column 19.
The text was updated successfully, but these errors were encountered:
Failing SQL Feature:
<=>
can't be parsedSQL Example:
however, the following crashes:
String vectorSql= "SELECT (embedding <=> '[3,1,2]') AS cosine_similarity FROM items;";
with error message:
Exception in thread "main" net.sf.jsqlparser.JSQLParserException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "<=" <OP_MINORTHANEQUALS>
at line 1, column 19.
Was expecting one of:
Caused by: java.util.concurrent.ExecutionException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "<=" <OP_MINORTHANEQUALS>
at line 1, column 19.
The text was updated successfully, but these errors were encountered: