question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

source record is not a vertex

See original GitHub issue

Expected 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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wolf4oodcommented, May 19, 2016

@amyth

that is because $email is from update.

try with select on email or use

let email= update  email set email = 'e@gmail.com' return after @this where email = 'e@gmail.com' 
1reaction
wolf4oodcommented, May 19, 2016

Can you check in the schema if Person has V as superclass ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found