{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8277","repository_url":"https://api.github.com/repos/orientechnologies/orientdb","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8277/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8277/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8277/events","html_url":"https://github.com/orientechnologies/orientdb/issues/8277","id":324954040,"number":8277,"title":"SQL Parsing of list of objects keeps only the first element and fail later","user":{"login":"jxerome","id":1355634,"avatar_url":"https://avatars3.githubusercontent.com/u/1355634?v=4","gravatar_id":"","url":"https://api.github.com/users/jxerome","html_url":"https://github.com/jxerome","followers_url":"https://api.github.com/users/jxerome/followers","following_url":"https://api.github.com/users/jxerome/following{/other_user}","gists_url":"https://api.github.com/users/jxerome/gists{/gist_id}","starred_url":"https://api.github.com/users/jxerome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jxerome/subscriptions","organizations_url":"https://api.github.com/users/jxerome/orgs","repos_url":"https://api.github.com/users/jxerome/repos","events_url":"https://api.github.com/users/jxerome/events{/privacy}","received_events_url":"https://api.github.com/users/jxerome/received_events","type":"User","site_admin":false},"labels":[{"id":197557840,"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"luigidellaquila","id":459289,"avatar_url":"https://avatars0.githubusercontent.com/u/459289?v=4","gravatar_id":"","url":"https://api.github.com/users/luigidellaquila","html_url":"https://github.com/luigidellaquila","followers_url":"https://api.github.com/users/luigidellaquila/followers","following_url":"https://api.github.com/users/luigidellaquila/following{/other_user}","gists_url":"https://api.github.com/users/luigidellaquila/gists{/gist_id}","starred_url":"https://api.github.com/users/luigidellaquila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luigidellaquila/subscriptions","organizations_url":"https://api.github.com/users/luigidellaquila/orgs","repos_url":"https://api.github.com/users/luigidellaquila/repos","events_url":"https://api.github.com/users/luigidellaquila/events{/privacy}","received_events_url":"https://api.github.com/users/luigidellaquila/received_events","type":"User","site_admin":false},"assignees":[{"login":"luigidellaquila","id":459289,"avatar_url":"https://avatars0.githubusercontent.com/u/459289?v=4","gravatar_id":"","url":"https://api.github.com/users/luigidellaquila","html_url":"https://github.com/luigidellaquila","followers_url":"https://api.github.com/users/luigidellaquila/followers","following_url":"https://api.github.com/users/luigidellaquila/following{/other_user}","gists_url":"https://api.github.com/users/luigidellaquila/gists{/gist_id}","starred_url":"https://api.github.com/users/luigidellaquila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luigidellaquila/subscriptions","organizations_url":"https://api.github.com/users/luigidellaquila/orgs","repos_url":"https://api.github.com/users/luigidellaquila/repos","events_url":"https://api.github.com/users/luigidellaquila/events{/privacy}","received_events_url":"https://api.github.com/users/luigidellaquila/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/139","html_url":"https://github.com/orientechnologies/orientdb/milestone/139","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/139/labels","id":3360998,"number":139,"title":"3.0.2","description":null,"creator":{"login":"luigidellaquila","id":459289,"avatar_url":"https://avatars0.githubusercontent.com/u/459289?v=4","gravatar_id":"","url":"https://api.github.com/users/luigidellaquila","html_url":"https://github.com/luigidellaquila","followers_url":"https://api.github.com/users/luigidellaquila/followers","following_url":"https://api.github.com/users/luigidellaquila/following{/other_user}","gists_url":"https://api.github.com/users/luigidellaquila/gists{/gist_id}","starred_url":"https://api.github.com/users/luigidellaquila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luigidellaquila/subscriptions","organizations_url":"https://api.github.com/users/luigidellaquila/orgs","repos_url":"https://api.github.com/users/luigidellaquila/repos","events_url":"https://api.github.com/users/luigidellaquila/events{/privacy}","received_events_url":"https://api.github.com/users/luigidellaquila/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":3,"state":"open","created_at":"2018-05-21T10:26:52Z","updated_at":"2018-05-22T12:00:02Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2018-05-21T15:15:46Z","updated_at":"2018-05-22T12:02:59Z","closed_at":"2018-05-22T11:59:27Z","author_association":"NONE","body":"### OrientDB Version: 3.0.1, 3.0.0, 3.0.0RC2  \r\n### Java Version: 1.8.0_162\r\nJava(TM) SE Runtime Environment (build 1.8.0_162-b12)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)  \r\n\r\n### OS: Mac OS X 10.13.4 \r\n\r\n## Expected behavior  \r\nExpect list of objects to be read as a list and be used \r\n\r\n## Actual behavior  \r\nThe parser replace the list by it's first element. The command that use the list fails because it expects a list.\r\n\r\n## Steps to reproduce  \r\n\r\nHere is an exemple in the console. The same error happens with the execute command of the java driver.\r\n\r\n```\r\norientdb> create database memory:test\r\n\r\nCreating database [memory:test] using the storage type [MEMORY]...\r\nDatabase created successfully.\r\n\r\nCurrent database is: memory:test\r\norientdb {db=test}> create class values\r\n\r\nClass created successfully.\r\n\r\norientdb {db=test}> create property values.name string\r\n\r\nProperty created successfully.\r\n\r\norientdb {db=test}> create property values.value string\r\n\r\nProperty created successfully.\r\n\r\norientdb {db=test}> create class stuff\r\n\r\nClass created successfully.\r\n\r\norientdb {db=test}> create property stuff.name string\r\n\r\nProperty created successfully.\r\n\r\norientdb {db=test}> create property stuff.values embeddedlist values\r\n\r\nProperty created successfully.\r\n\r\norientdb {db=test}> insert into stuff set name = 'a', values = [{'name':'p1','value':'v1'}]\r\n\r\nError: com.orientechnologies.orient.core.exception.OValidationException: The field 'stuff.values' has been declared as EMBEDDEDLIST but an incompatible type is used. Value: {name=p1, value=v1}\r\n\tDB name=\"test\"\r\n\tError Code=\"4\"\r\n\r\norientdb {db=test}> insert into stuff (name, values) values ('a', [{'name':'p1','value':'v1'}])\r\n\r\nError: com.orientechnologies.orient.core.exception.OValidationException: The field 'stuff.values' has been declared as EMBEDDEDLIST but an incompatible type is used. Value: {name=p1, value=v1}\r\n\tDB name=\"test\"\r\n\tError Code=\"4\"\r\n\r\norientdb {db=test}> insert into stuff (name, values) values ('a', [{'name':'p1','value':'v1'},{'name':'b','value':'v2'}])\r\n\r\nError: com.orientechnologies.orient.core.exception.OValidationException: The field 'stuff.values' has been declared as EMBEDDEDLIST but an incompatible type is used. Value: {name=p1, value=v1}\r\n\tDB name=\"test\"\r\n\tError Code=\"4\"\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/comments/390965197","html_url":"https://github.com/orientechnologies/orientdb/issues/8277#issuecomment-390965197","issue_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/8277","id":390965197,"user":{"login":"jxerome","id":1355634,"avatar_url":"https://avatars3.githubusercontent.com/u/1355634?v=4","gravatar_id":"","url":"https://api.github.com/users/jxerome","html_url":"https://github.com/jxerome","followers_url":"https://api.github.com/users/jxerome/followers","following_url":"https://api.github.com/users/jxerome/following{/other_user}","gists_url":"https://api.github.com/users/jxerome/gists{/gist_id}","starred_url":"https://api.github.com/users/jxerome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jxerome/subscriptions","organizations_url":"https://api.github.com/users/jxerome/orgs","repos_url":"https://api.github.com/users/jxerome/repos","events_url":"https://api.github.com/users/jxerome/events{/privacy}","received_events_url":"https://api.github.com/users/jxerome/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T12:02:59Z","updated_at":"2018-05-22T12:02:59Z","author_association":"NONE","body":"Thank you for your reactivity."}}
{"actor":{"display_login":"jxerome"}}