diff --git a/presto-main/src/main/java/io/prestosql/sql/rewrite/ShowQueriesRewrite.java b/presto-main/src/main/java/io/prestosql/sql/rewrite/ShowQueriesRewrite.java index 9b41d1e048ab..d11f11453747 100644 --- a/presto-main/src/main/java/io/prestosql/sql/rewrite/ShowQueriesRewrite.java +++ b/presto-main/src/main/java/io/prestosql/sql/rewrite/ShowQueriesRewrite.java @@ -144,7 +144,7 @@ public Statement rewrite( AccessControl accessControl, WarningCollector warningCollector) { - return (Statement) new Visitor(metadata, parser, session, parameters, accessControl).process(node, null); + return (Statement) new Visitor(metadata, parser, session, accessControl).process(node, null); } private static class Visitor @@ -153,15 +153,13 @@ private static class Visitor private final Metadata metadata; private final Session session; private final SqlParser sqlParser; - private final List parameters; private final AccessControl accessControl; - public Visitor(Metadata metadata, SqlParser sqlParser, Session session, List parameters, AccessControl accessControl) + public Visitor(Metadata metadata, SqlParser sqlParser, Session session, AccessControl accessControl) { this.metadata = requireNonNull(metadata, "metadata is null"); this.sqlParser = requireNonNull(sqlParser, "sqlParser is null"); this.session = requireNonNull(session, "session is null"); - this.parameters = requireNonNull(parameters, "parameters is null"); this.accessControl = requireNonNull(accessControl, "accessControl is null"); }