gianm commented on a change in pull request #6302: Add SQL id, request logs,
and metrics
URL: https://github.com/apache/incubator-druid/pull/6302#discussion_r246160712
##########
File path:
sql/src/main/java/org/apache/druid/sql/calcite/view/DruidViewMacro.java
##########
@@ -51,10 +52,11 @@ public DruidViewMacro(final PlannerFactory plannerFactory,
final Escalator escal
public TranslatableTable apply(final List<Object> arguments)
{
final RelDataType rowType;
- try (final DruidPlanner planner = plannerFactory.createPlanner(null)) {
+ final AuthenticationResult authenticationResult =
escalator.createEscalatedAuthenticationResult();
+ try (final DruidPlanner planner = plannerFactory.createPlanner(null,
authenticationResult)) {
// Using an escalator here is a hack, but it's currently needed to get
the row type. Ideally, some
Review comment:
This comment should move up a couple lines, to where the escalator is
actually used.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]