Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error upgrading from 2.X to 3.X: java.lang.UnsupportedOperationException: Cannot convert #8565

Closed
adepase opened this issue Sep 26, 2018 · 11 comments
Assignees
Labels
Milestone

Comments

@adepase
Copy link

adepase commented Sep 26, 2018

OrientDB Version: 3.0.7

Java Version: 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 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 'evento' and lang='it'), 
              $b = ( select @rid as son, null as parent from synset where lemmas lucene 'matrimonio' and lang='it' and verified is null ), 
              $c = UNIONALL( $a, $b )
     )
) unwind son, parent

Result:

parent | son
-- | --
#20:4496 | #17:6119
#19:961 | #17:6119
#20:4496 | #19:6118
....

Actual behavior

exactly same query, from Studio->Browse (db exported and imported, apparently without any issue):
Error:
java.lang.UnsupportedOperationException: Cannot convert {Synset_lemmas_totalHits=5, a=[{ son: null parent: #17:25795 } , { son: null parent: #20:39457 } ], current={ } , b=[{ son: #17:1520 parent: null } , { son: #20:14296 parent: null } , { son: #19:27075 parent: null } , { son: #17:841 parent: null } , { son: #20:39859 parent: null } ], totalHits=5} - class com.orientechnologies.orient.core.command.OBasicCommandContext to JSON

Steps to reproduce

See above.

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

@luigidellaquila
Copy link
Member

Hi @adepase

Thank you for reporting, I'm checking it.

Thanks

Luigi

@luigidellaquila
Copy link
Member

HI @adepase

I don't seem to be able to reproduce the problem, any chance to have a DB to reproduce it?

Thanks

Luigi

@adepase
Copy link
Author

adepase commented Oct 1, 2018

mrjReduced.gz

Hi @luigidellaquila
sure, I can send you a very reduced db, with the same issue: try the uploaded export, changing the query to:

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

Same error.

Thank you
Alessandro
P.S.: looking at your nickname, if you're italian, I'm italian, let me know if you prefer speaking italian

@luigidellaquila
Copy link
Member

Hi @adepase

Thank you very much, I'm checking it.
Yes, I'm Italian, but please let's keep writing in English, the issues remain as a general referenece for the community

Thanks

Luigi

@luigidellaquila
Copy link
Member

Hi @adepase

I just pushed a fix, it will be released with v 3.0.9

Thanks

Luigi

@adepase
Copy link
Author

adepase commented Oct 2, 2018

Thank you, I'm waiting for it :)

@adepase
Copy link
Author

adepase commented Oct 17, 2018

I just read the release notes for v 3.0.9 and I cannot find this issue in the list: is this correct in that version or not? If not, when will it be the release version and date?
Thank you
Alessandro

@luigidellaquila
Copy link
Member

Hi @adepase

Sorry, my fault, I forgot to flag the issue for the release, I'm updating the release notes now.
And yes, the fix is in the release

Thanks

Luigi

@luigidellaquila luigidellaquila added this to the 3.0.9 milestone Oct 17, 2018
@luigidellaquila
Copy link
Member

Done

@adepase
Copy link
Author

adepase commented Oct 17, 2018

Thank you, I'll try it immediately

@adepase
Copy link
Author

adepase commented Nov 19, 2018

Well, not exactly immediately, but it works. ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants