From c60c4b66a8a068fc0ee5ebe4c936c01bc730b0a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20Kokosi=C5=84ski?= Date: Mon, 21 Nov 2022 12:37:19 +0100 Subject: [PATCH] Use Identity.ofUser factory method instead of Identity Builder --- .../main/java/io/trino/sql/analyzer/StatementAnalyzer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/trino-main/src/main/java/io/trino/sql/analyzer/StatementAnalyzer.java b/core/trino-main/src/main/java/io/trino/sql/analyzer/StatementAnalyzer.java index 16fd86dcbc64..6c8f8bc4c0a0 100644 --- a/core/trino-main/src/main/java/io/trino/sql/analyzer/StatementAnalyzer.java +++ b/core/trino-main/src/main/java/io/trino/sql/analyzer/StatementAnalyzer.java @@ -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, @@ -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,