Aditya Kishore created DRILL-664: ------------------------------------ Summary: Improve Rpc error message display Key: DRILL-664 URL: https://issues.apache.org/jira/browse/DRILL-664 Project: Apache Drill Issue Type: Improvement Reporter: Aditya Kishore Assignee: Aditya Kishore Priority: Minor Attachments: DRILL-664-Improve-Rpc-error-message-display.patch
At present, a query failure results in illegibly formatted error message (due to escaped protobuf string encoding). This results in error message like the following. {noformat} org.apache.drill.exec.rpc.RpcException: Remote failure while running query.[error_id: "5041d4c5-0d60-47c2-a350-27c1a07e54f9" endpoint { address: "10.250.0.230" user_port: 31010 control_port: 31011 data_port: 31012 } error_type: 0 message: "Failure while parsing sql. < SqlParseException:[ Encountered \".\" at line 2, column 24.\r\nWas expecting one of:\r\n \"FROM\" ...\r\n \",\" ...\r\n \"AS\" ...\r\n <IDENTIFIER> ...\r\n <QUOTED_IDENTIFIER> ...\r\n <BACK_QUOTED_IDENTIFIER> ...\r\n <BRACKET_QUOTED_IDENTIFIER> ...\r\n <UNICODE_QUOTED_IDENTIFIER> ...\r\n \"NOT\" ...\r\n \"IN\" ...\r\n \"BETWEEN\" ...\r\n \"LIKE\" ...\r\n \"SIMILAR\" ...\r\n \"=\" ...\r\n \">\" ...\r\n \"<\" ...\r\n \"<=\" ...\r\n \">=\" ...\r\n \"<>\" ...\r\n \"+\" ...\r\n \"-\" ...\r\n \"*\" ...\r\n \"/\" ...\r\n \"||\" ...\r\n \"AND\" ...\r\n \"OR\" ...\r\n \"IS\" ...\r\n \"MEMBER\" ...\r\n \"SUBMULTISET\" ...\r\n \"MULTISET\" ...\r\n \"[\" ...\r\n ] < ParseException:[ Encountered \".\" at line 2, column 24.\r\nWas expecting one of:\r\n \"FROM\" ...\r\n \",\" ...\r\n \"AS\" ...\r\n <IDENTIFIER> ...\r\n <QUOTED_IDENTIFIER> ...\r\n <BACK_QUOTED_IDENTIFIER> ...\r\n <BRACKET_QUOTED_IDENTIFIER> ...\r\n <UNICODE_QUOTED_IDENTIFIER> ...\r\n \"NOT\" ...\r\n \"IN\" ...\r\n \"BETWEEN\" ...\r\n \"LIKE\" ...\r\n \"SIMILAR\" ...\r\n \"=\" ...\r\n \">\" ...\r\n \"<\" ...\r\n \"<=\" ...\r\n \">=\" ...\r\n \"<>\" ...\r\n \"+\" ...\r\n \"-\" ...\r\n \"*\" ...\r\n \"/\" ...\r\n \"||\" ...\r\n \"AND\" ...\r\n \"OR\" ...\r\n \"IS\" ...\r\n \"MEMBER\" ...\r\n \"SUBMULTISET\" ...\r\n \"MULTISET\" ...\r\n \"[\" ...\r\n ]" ] at org.apache.drill.exec.rpc.user.QueryResultHandler.batchArrived(QueryResultHandler.java:72) at org.apache.drill.exec.rpc.user.UserClient.handleReponse(UserClient.java:80) at org.apache.drill.exec.rpc.BasicClientWithConnection.handle(BasicClientWithConnection.java:52) at org.apache.drill.exec.rpc.BasicClientWithConnection.handle(BasicClientWithConnection.java:34) {noformat} -- This message was sent by Atlassian JIRA (v6.2#6252)