{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/presto/issues/3371","labels_url":"https://api.github.com/repos/facebook/presto/issues/3371/labels{/name}","comments_url":"https://api.github.com/repos/facebook/presto/issues/3371/comments","events_url":"https://api.github.com/repos/facebook/presto/issues/3371/events","html_url":"https://github.com/facebook/presto/issues/3371","id":98011775,"number":3371,"title":"Dereference of array in row throws exception in LocalExecutionPlanner","user":{"login":"dain","id":58298,"avatar_url":"https://avatars.githubusercontent.com/u/58298?v=3","gravatar_id":"","url":"https://api.github.com/users/dain","html_url":"https://github.com/dain","followers_url":"https://api.github.com/users/dain/followers","following_url":"https://api.github.com/users/dain/following{/other_user}","gists_url":"https://api.github.com/users/dain/gists{/gist_id}","starred_url":"https://api.github.com/users/dain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dain/subscriptions","organizations_url":"https://api.github.com/users/dain/orgs","repos_url":"https://api.github.com/users/dain/repos","events_url":"https://api.github.com/users/dain/events{/privacy}","received_events_url":"https://api.github.com/users/dain/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/presto/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"joy-yao","id":10444908,"avatar_url":"https://avatars.githubusercontent.com/u/10444908?v=3","gravatar_id":"","url":"https://api.github.com/users/joy-yao","html_url":"https://github.com/joy-yao","followers_url":"https://api.github.com/users/joy-yao/followers","following_url":"https://api.github.com/users/joy-yao/following{/other_user}","gists_url":"https://api.github.com/users/joy-yao/gists{/gist_id}","starred_url":"https://api.github.com/users/joy-yao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joy-yao/subscriptions","organizations_url":"https://api.github.com/users/joy-yao/orgs","repos_url":"https://api.github.com/users/joy-yao/repos","events_url":"https://api.github.com/users/joy-yao/events{/privacy}","received_events_url":"https://api.github.com/users/joy-yao/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-07-29T19:28:57Z","updated_at":"2015-10-24T18:55:09Z","closed_at":"2015-10-24T18:55:09Z","body":"```java\r\nassertQuery(\"SELECT a.col1[1] FROM (VALUES ROW(test_row(TRUE, ARRAY [1], MAP(ARRAY[1, 3], ARRAY[2.0, 4.0])))) as t(a)\");\r\n```\r\n\r\n```\r\njava.lang.IllegalArgumentException: Can't create a symbol from a qualified name with prefix\r\n\tat com.google.common.base.Preconditions.checkArgument(Preconditions.java:122)\r\n\tat com.facebook.presto.sql.planner.Symbol.fromQualifiedName(Symbol.java:52)\r\n\tat com.facebook.presto.sql.planner.SymbolToInputRewriter.rewriteQualifiedNameReference(SymbolToInputRewriter.java:42)\r\n\tat com.facebook.presto.sql.planner.SymbolToInputRewriter.rewriteQualifiedNameReference(SymbolToInputRewriter.java:28)\r\n\tat com.facebook.presto.sql.tree.ExpressionTreeRewriter$RewritingVisitor.visitQualifiedNameReference(ExpressionTreeRewriter.java:606)\r\n\tat com.facebook.presto.sql.tree.ExpressionTreeRewriter$RewritingVisitor.visitQualifiedNameReference(ExpressionTreeRewriter.java:56)\r\n\tat com.facebook.presto.sql.tree.QualifiedNameReference.accept(QualifiedNameReference.java:39)\r\n\tat com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:22)\r\n\tat com.facebook.presto.sql.tree.ExpressionTreeRewriter.rewrite(ExpressionTreeRewriter.java:45)\r\n\tat com.facebook.presto.sql.tree.ExpressionTreeRewriter$RewritingVisitor.visitSubscriptExpression(ExpressionTreeRewriter.java:164)\r\n\tat com.facebook.presto.sql.tree.ExpressionTreeRewriter$RewritingVisitor.visitSubscriptExpression(ExpressionTreeRewriter.java:56)\r\n\tat com.facebook.presto.sql.tree.SubscriptExpression.accept(SubscriptExpression.java:35)\r\n\tat com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:22)\r\n\tat com.facebook.presto.sql.tree.ExpressionTreeRewriter.rewrite(ExpressionTreeRewriter.java:45)\r\n\tat com.facebook.presto.sql.tree.ExpressionTreeRewriter.rewriteWith(ExpressionTreeRewriter.java:29)\r\n\tat com.facebook.presto.sql.planner.LocalExecutionPlanner$Visitor.visitScanFilterAndProject(LocalExecutionPlanner.java:859)\r\n\tat com.facebook.presto.sql.planner.LocalExecutionPlanner$Visitor.visitProject(LocalExecutionPlanner.java:802)\r\n\tat com.facebook.presto.sql.planner.LocalExecutionPlanner$Visitor.visitProject(LocalExecutionPlanner.java:407)\r\n\tat com.facebook.presto.sql.planner.plan.ProjectNode.accept(ProjectNode.java:81)\r\n\tat com.facebook.presto.sql.planner.LocalExecutionPlanner$Visitor.visitOutput(LocalExecutionPlanner.java:430)\r\n\tat com.facebook.presto.sql.planner.LocalExecutionPlanner$Visitor.visitOutput(LocalExecutionPlanner.java:407)\r\n\tat com.facebook.presto.sql.planner.plan.OutputNode.accept(OutputNode.java:79)\r\n\tat com.facebook.presto.sql.planner.LocalExecutionPlanner.plan(LocalExecutionPlanner.java:239)\r\n\tat com.facebook.presto.execution.SqlTaskExecution.<init>(SqlTaskExecution.java:165)\r\n```"}}