File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
legacy-cypher-projection/src/main/java/org/neo4j/gds/legacycypherprojection Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 2727import java .util .Collection ;
2828
2929import static org .neo4j .gds .utils .StringFormatting .formatWithLocale ;
30- import static org .neo4j .internal .kernel .api .security .AccessMode .Static .READ ;
3130
3231public class CypherQueryEstimator {
3332
@@ -48,7 +47,7 @@ public EstimationResult getRelationshipEstimation(String relationshipQuery) {
4847 }
4948
5049 private EstimationResult runEstimationQuery (String query , Collection <String > reservedColumns ) {
51- return context .withRestrictedAccess ( READ ). apply ((tx , ktx ) -> {
50+ return context .apply ((tx , ktx ) -> {
5251 var explainQuery = formatWithLocale ("EXPLAIN %s" , query );
5352 try (var result = tx .execute (explainQuery )) {
5453 var estimatedRows = (Number ) result .getExecutionPlanDescription ().getArguments ().get ("EstimatedRows" );
You can’t perform that action at this time.
0 commit comments