{"action":"opened","issue":{"url":"https://api.github.com/repos/prestodb/presto/issues/5156","repository_url":"https://api.github.com/repos/prestodb/presto","labels_url":"https://api.github.com/repos/prestodb/presto/issues/5156/labels{/name}","comments_url":"https://api.github.com/repos/prestodb/presto/issues/5156/comments","events_url":"https://api.github.com/repos/prestodb/presto/issues/5156/events","html_url":"https://github.com/prestodb/presto/issues/5156","id":151793863,"number":5156,"title":"Typo in extract call crashes CLI","user":{"login":"raghavsethi","id":715788,"avatar_url":"https://avatars.githubusercontent.com/u/715788?v=3","gravatar_id":"","url":"https://api.github.com/users/raghavsethi","html_url":"https://github.com/raghavsethi","followers_url":"https://api.github.com/users/raghavsethi/followers","following_url":"https://api.github.com/users/raghavsethi/following{/other_user}","gists_url":"https://api.github.com/users/raghavsethi/gists{/gist_id}","starred_url":"https://api.github.com/users/raghavsethi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raghavsethi/subscriptions","organizations_url":"https://api.github.com/users/raghavsethi/orgs","repos_url":"https://api.github.com/users/raghavsethi/repos","events_url":"https://api.github.com/users/raghavsethi/events{/privacy}","received_events_url":"https://api.github.com/users/raghavsethi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/prestodb/presto/labels/beginner-task","name":"beginner-task","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-29T05:05:53Z","updated_at":"2016-04-29T05:05:53Z","closed_at":null,"body":"```\r\nselect extract(hou from create_time) from (values 1);\r\n\r\n```\r\nException in thread \"main\" java.lang.IllegalArgumentException: No enum constant com.facebook.presto.sql.tree.Extract.Field.HOU\r\n        at java.lang.Enum.valueOf(Enum.java:238)\r\n        at com.facebook.presto.sql.tree.Extract$Field.valueOf(Extract.java:30)\r\n        at com.facebook.presto.sql.parser.AstBuilder.visitExtract(AstBuilder.java:978)\r\n        at com.facebook.presto.sql.parser.AstBuilder.visitExtract(AstBuilder.java:151)\r\n        at com.facebook.presto.sql.parser.SqlBaseParser$ExtractContext.accept(SqlBaseParser.java:6210)\r\n        at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:70)\r\n        at com.facebook.presto.sql.parser.SqlBaseBaseVisitor.visitValueExpressionDefault(SqlBaseBaseVisitor.java:573)\r\n        at com.facebook.presto.sql.parser.SqlBaseParser$ValueExpressionDefaultContext.accept(SqlBaseParser.java:5532)\r\n        at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:42)\r\n        at com.facebook.presto.sql.parser.AstBuilder.visitPredicated(AstBuilder.java:768)\r\n        at com.facebook.presto.sql.parser.AstBuilder.visitPredicated(AstBuilder.java:151)\r\n        at com.facebook.presto.sql.parser.SqlBaseParser$PredicatedContext.accept(SqlBaseParser.java:5103)\r\n        at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:70)\r\n        at com.facebook.presto.sql.parser.SqlBaseBaseVisitor.visitBooleanDefault(SqlBaseBaseVisitor.java:496)\r\n        at com.facebook.presto.sql.parser.SqlBaseParser$BooleanDefaultContext.accept(SqlBaseParser.java:4809)\r\n        at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:70)\r\n        at com.facebook.presto.sql.parser.SqlBaseBaseVisitor.visitExpression(SqlBaseBaseVisitor.java:482)\r\n        at com.facebook.presto.sql.parser.SqlBaseParser$ExpressionContext.accept(SqlBaseParser.java:4737)\r\n        at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:42)\r\n        at com.facebook.presto.sql.parser.AstBuilder.visitSelectSingle(AstBuilder.java:489)\r\n        at com.facebook.presto.sql.parser.AstBuilder.visitSelectSingle(AstBuilder.java:151)\r\n        at com.facebook.presto.sql.parser.SqlBaseParser$SelectSingleContext.accept(SqlBaseParser.java:3772)\r\n        at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:42)\r\n        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)\r\n        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374)\r\n        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)\r\n        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)\r\n        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)\r\n        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)\r\n        at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)\r\n        at com.facebook.presto.sql.parser.AstBuilder.visit(AstBuilder.java:1296)\r\n```"}}