Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused parameter #14800

Merged
merged 1 commit into from
Oct 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ protected Object visitCurrentSchema(CurrentSchema node, Object context)
@Override
protected Object visitCurrentUser(CurrentUser node, Object context)
{
return visitFunctionCall(DesugarCurrentUser.getCall(node, metadata, session), context);
return visitFunctionCall(DesugarCurrentUser.getCall(metadata, session), context);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ private static ExpressionRewriter createRewrite(Metadata metadata)
@Override
public Expression rewriteCurrentUser(CurrentUser node, Void ignored, ExpressionTreeRewriter<Void> treeRewriter)
{
return getCall(node, metadata, context.getSession());
return getCall(metadata, context.getSession());
}
}, expression);
}

public static FunctionCall getCall(CurrentUser node, Metadata metadata, Session session)
public static FunctionCall getCall(Metadata metadata, Session session)
{
return FunctionCallBuilder.resolve(session, metadata)
.setName(QualifiedName.of("$current_user"))
Expand Down