Skip to content

Error upgrading from 2.x to 3.x: The destination vertex must be a vertex record #8669

@adepase

Description

@adepase

OrientDB Version: 3.0.10

Java Version: "1.8.0_171"

Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11,
mixed mode)

OS: Windows 10 Home

Expected behavior

Until (at least) version 2.2.23
Directly from Studio->Browse, execute the following query:

SELECT percorso from (
	SELECT shortestPath(son, parent, 'OUT', 'hypernym') as percorso from (
		select from (
			select list(son) as son, list(parent) as parent from (
				SELECT EXPAND( $c ) 
					LET $a = ( select null as son, @rid as parent from synset where lemmas lucene 'animale' and lang='it'), 
              				$b = ( select @rid as son, null as parent from synset where lemmas lucene 'gatto' and lang='it' and verified is null ), 
					$c = UNIONALL( $a, $b )
                        )
                  ) unwind son, parent
	)
)

Result

PROPERTIES
--

#21:0 #22:0 #23:0 #24:0 #21:1 #22:1 ..More(2)
#21:2 #21:0 #22:0 #23:0 #24:0 #21:1 ..More(3)

Actual behavior

java.lang.IllegalArgumentException: The destinationVertex must be a vertex record

Steps to reproduce

See above. You can use the reduced example db in #8565
I cannot find any upgrade instruction about changes in the sql that could be impacted in the above query.
Please, help, I cannot upgrade in these conditions

Metadata

Metadata

Labels

buglegacy not used anymore

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions