{"action":"created","issue":{"url":"https://api.github.com/repos/orientechnologies/orientjs/issues/341","repository_url":"https://api.github.com/repos/orientechnologies/orientjs","labels_url":"https://api.github.com/repos/orientechnologies/orientjs/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientjs/issues/341/comments","events_url":"https://api.github.com/repos/orientechnologies/orientjs/issues/341/events","html_url":"https://github.com/orientechnologies/orientjs/issues/341","id":376647120,"node_id":"MDU6SXNzdWUzNzY2NDcxMjA=","number":341,"title":"Getting error by processing subqueries in \"projections\"","user":{"login":"petervavro","id":4742672,"node_id":"MDQ6VXNlcjQ3NDI2NzI=","avatar_url":"https://avatars3.githubusercontent.com/u/4742672?v=4","gravatar_id":"","url":"https://api.github.com/users/petervavro","html_url":"https://github.com/petervavro","followers_url":"https://api.github.com/users/petervavro/followers","following_url":"https://api.github.com/users/petervavro/following{/other_user}","gists_url":"https://api.github.com/users/petervavro/gists{/gist_id}","starred_url":"https://api.github.com/users/petervavro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petervavro/subscriptions","organizations_url":"https://api.github.com/users/petervavro/orgs","repos_url":"https://api.github.com/users/petervavro/repos","events_url":"https://api.github.com/users/petervavro/events{/privacy}","received_events_url":"https://api.github.com/users/petervavro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"wolf4ood","id":98812,"node_id":"MDQ6VXNlcjk4ODEy","avatar_url":"https://avatars2.githubusercontent.com/u/98812?v=4","gravatar_id":"","url":"https://api.github.com/users/wolf4ood","html_url":"https://github.com/wolf4ood","followers_url":"https://api.github.com/users/wolf4ood/followers","following_url":"https://api.github.com/users/wolf4ood/following{/other_user}","gists_url":"https://api.github.com/users/wolf4ood/gists{/gist_id}","starred_url":"https://api.github.com/users/wolf4ood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolf4ood/subscriptions","organizations_url":"https://api.github.com/users/wolf4ood/orgs","repos_url":"https://api.github.com/users/wolf4ood/repos","events_url":"https://api.github.com/users/wolf4ood/events{/privacy}","received_events_url":"https://api.github.com/users/wolf4ood/received_events","type":"User","site_admin":false},"assignees":[{"login":"wolf4ood","id":98812,"node_id":"MDQ6VXNlcjk4ODEy","avatar_url":"https://avatars2.githubusercontent.com/u/98812?v=4","gravatar_id":"","url":"https://api.github.com/users/wolf4ood","html_url":"https://github.com/wolf4ood","followers_url":"https://api.github.com/users/wolf4ood/followers","following_url":"https://api.github.com/users/wolf4ood/following{/other_user}","gists_url":"https://api.github.com/users/wolf4ood/gists{/gist_id}","starred_url":"https://api.github.com/users/wolf4ood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolf4ood/subscriptions","organizations_url":"https://api.github.com/users/wolf4ood/orgs","repos_url":"https://api.github.com/users/wolf4ood/repos","events_url":"https://api.github.com/users/wolf4ood/events{/privacy}","received_events_url":"https://api.github.com/users/wolf4ood/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-11-02T02:44:03Z","updated_at":"2018-11-02T17:31:41Z","closed_at":null,"author_association":"NONE","body":"### Running this :\r\n```\r\nlet r = db\r\n    .select([\r\n        `(SELECT * FROM TableB)`\r\n        `fieldI`,\r\n        `fieldII`\r\n    ])\r\n    .from(`TableA`)\r\n    .all()\r\n```\r\n### Getting error :\r\n\r\n`{ OrientDB.RequestError: Error on execution of command: sql.SELECT (SELECT * FROM TableB), fieldI, fieldII FROM TableA\r\n        DB name=\"dbtest\"\r\n    at child.Operation.parseError (/node_modules/orientjs/lib/transport/binary/protocol33/operation.js:905:13)\r\n    at child.Operation.consume (/node_modules/orientjs/lib/transport/binary/protocol33/operation.js:496:35)\r\n    at Connection.process (/node_modules/orientjs/lib/transport/binary/connection.js:459:17)\r\n    at Connection.handleSocketData (/node_modules/orientjs/lib/transport/binary/connection.js:331:20)\r\n    at emitOne (events.js:116:13)\r\n    at Socket.emit (events.js:211:7)\r\n    at addChunk (_stream_readable.js:263:12)\r\n    at readableAddChunk (_stream_readable.js:250:11)\r\n    at Socket.Readable.push (_stream_readable.js:208:10)\r\n    at TCP.onread (net.js:601:20)\r\nFrom previous event:\r\n    at Connection._sendOp (/node_modules/orientjs/lib/transport/binary/connection.js:87:10)\r\n    at Connection.send (/node_modules/orientjs/lib/transport/binary/connection.js:71:17)\r\n    at /node_modules/orientjs/lib/transport/binary/index.js:303:38\r\nFrom previous event:\r\n    at BinaryTransport.send (/node_modules/orientjs/lib/transport/binary/index.js:301:12)\r\n    at Server.withRetry (/node_modules/orientjs/lib/server/index.js:118:18)\r\n    at Server.<anonymous> (/node_modules/orientjs/lib/server/index.js:112:12)\r\nFrom previous event:\r\n    at Server.send (/node_modules/orientjs/lib/server/index.js:111:10)\r\n    at Db.<anonymous> (/node_modules/orientjs/lib/db/db.js:225:26)\r\n    at runCallback (timers.js:810:20)\r\n    at tryOnImmediate (timers.js:768:5)\r\n    at processImmediate [as _immediateCallback] (timers.js:745:5)\r\nFrom previous event:\r\n    at Db.<anonymous> (/node_modules/orientjs/lib/db/db.js:216:6)\r\n    at /node_modules/orientjs/lib/db/db.js:239:7\r\nFrom previous event:\r\n    at Db.retryIfExpired (/node_modules/orientjs/lib/db/db.js:238:10)\r\n    at Db.send (/node_modules/orientjs/lib/db/db.js:213:15)\r\n    at Db.exec (/node_modules/orientjs/lib/db/db.js:357:22)\r\n    at Db.query (/node_modules/orientjs/lib/db/db.js:391:15)\r\n    at child.exec (/node_modules/orientjs/lib/db/query.js:108:20)\r\n    at child.all (/node_modules/orientjs/lib/db/query.js:70:17)\r\n    at Object.getServices (/server/service/services.js:495:8)\r\n    at <anonymous>\r\n  name: 'OrientDB.RequestError',\r\n  message: 'Error on execution of command: sql.SELECT (SELECT * FROM TableB), fieldI, fieldII FROM TableA\\r\\n\\tDB name=\"dbtest\"',\r\n  data: {},\r\n  isMVCC: [Function],\r\n  isTokenException: [Function],\r\n  previous: [],\r\n  id: 1,\r\n  type: 'com.orientechnologies.orient.core.exception.OCommandExecutionException',\r\n  hasMore: 0 }`\r\n\r\nThank you !"},"comment":{"url":"https://api.github.com/repos/orientechnologies/orientjs/issues/comments/435453352","html_url":"https://github.com/orientechnologies/orientjs/issues/341#issuecomment-435453352","issue_url":"https://api.github.com/repos/orientechnologies/orientjs/issues/341","id":435453352,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTQ1MzM1Mg==","user":{"login":"petervavro","id":4742672,"node_id":"MDQ6VXNlcjQ3NDI2NzI=","avatar_url":"https://avatars3.githubusercontent.com/u/4742672?v=4","gravatar_id":"","url":"https://api.github.com/users/petervavro","html_url":"https://github.com/petervavro","followers_url":"https://api.github.com/users/petervavro/followers","following_url":"https://api.github.com/users/petervavro/following{/other_user}","gists_url":"https://api.github.com/users/petervavro/gists{/gist_id}","starred_url":"https://api.github.com/users/petervavro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petervavro/subscriptions","organizations_url":"https://api.github.com/users/petervavro/orgs","repos_url":"https://api.github.com/users/petervavro/repos","events_url":"https://api.github.com/users/petervavro/events{/privacy}","received_events_url":"https://api.github.com/users/petervavro/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T17:31:41Z","updated_at":"2018-11-02T17:31:41Z","author_association":"NONE","body":"I am using \"version\": \"3.0.0\". Thank you."}}
{"actor":{"display_login":"petervavro"}}