source record is not a vertex
See original GitHub issueExpected behavior and actual behavior
I am using the script sql
command in the console to run a batch query that selects
a Person
vertex then selects
an Email
vertex and then creates an edge HAS
from person to email. When I run the command I get the following error.
Error: com.orientechnologies.orient.core.exception.OCommandExecutionException: Error on execution of command: sql.create edge has from $user to $email
Error: java.lang.IllegalArgumentException: source record is not a vertex
Steps to reproduce the problem
orientdb {db=test}> script sql
[Started multi-line command. Type just 'end' to finish and execute]
orientdb {db=test}> begin
orientdb {db=test}> let user = select from person where uid = '12345'
orientdb {db=test}> let email = select from email where email = 'amyth@gmail.com'
orientdb {db=test}> let edge = create edge has from $user to $email
orientdb {db=test}> commit
orientdb {db=test}> return $edge
orientdb {db=test}> end
Important Questions
As far as I know both Person
and Email
are vertexes in the database. The data and schema was inserted using a .graphml
database exported from neo4j. What is source record here ? the person ?
Why is it not being treated as a vertex ? Another thing I would like to point out is for the same records if I directly create an edge using the records’ rid
’s, the edge between the vertexes are successfully created.
Runninng Mode
- Embedded, using PLOCAL access mode
- Embedded, using MEMORY access mode
- Remote
Misc
- I have a distributed setup with multiple servers. How many?
- I’m using the Enterprise Edition
OrientDB Version
- v2.0.x - Please specify last number:
- v2.1.17 - Please specify last number:
- v2.2.x - Please specify last number:
Operating System
- Linux
- MacOSX
- Windows
- Other Unix
- Other, name?
Java Version
- 6
- 7
- 8
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Source Record | OBS Forums
Exeldro submitted a new resource: Source Record - Record a source using a filter Download Plugin for OBS Studio to add a filter...
Read more >Data types and transformations | Vertex AI - Google Cloud
This page describes how Vertex AI works with different types of tabular data for AutoML models. Introduction to transformations in Vertex AI. Model...
Read more >Medical Video Capturing with Post-Processing Software
Record from Any Source. Vertex Capture is a perfect fit no matter what video device you use. It supports surgical cameras, surgical microscopes,...
Read more >Vert.x Service Discovery
If the JSON filter is not set ( null or empty), it accepts all records. ... JDBCDataSource - for JDBC data sources, the...
Read more >Vertex Specification - OpenGL Wiki - Khronos Group
The core OpenGL profile makes VAO object 0 not an object at all. ... There are two ways to use buffer objects as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@amyth
that is because $email is from update.
try with select on email or use
Can you check in the schema if Person has V as superclass ?