Skip to content

Commit

Permalink
Use Identity.ofUser factory method instead of Identity Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
kokosing committed Nov 28, 2022
1 parent 0ebdaa0 commit c60c4b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4557,7 +4557,7 @@ private void analyzeRowFilter(String currentIdentity, Table table, QualifiedObje
ExpressionAnalysis expressionAnalysis;
try {
expressionAnalysis = ExpressionAnalyzer.analyzeExpression(
createViewSession(filter.getCatalog(), filter.getSchema(), Identity.forUser(filter.getIdentity()).build(), session.getPath()), // TODO: path should be included in row filter
createViewSession(filter.getCatalog(), filter.getSchema(), Identity.ofUser(filter.getIdentity()), session.getPath()), // TODO: path should be included in row filter
plannerContext,
statementAnalyzerFactory,
accessControl,
Expand Down Expand Up @@ -4612,7 +4612,7 @@ private void analyzeColumnMask(String currentIdentity, Table table, QualifiedObj

try {
expressionAnalysis = ExpressionAnalyzer.analyzeExpression(
createViewSession(mask.getCatalog(), mask.getSchema(), Identity.forUser(mask.getIdentity()).build(), session.getPath()), // TODO: path should be included in row filter
createViewSession(mask.getCatalog(), mask.getSchema(), Identity.ofUser(mask.getIdentity()), session.getPath()), // TODO: path should be included in row filter
plannerContext,
statementAnalyzerFactory,
accessControl,
Expand Down

0 comments on commit c60c4b6

Please sign in to comment.