ccaominh commented on a change in pull request #6974: sql support for dynamic
parameters
URL: https://github.com/apache/incubator-druid/pull/6974#discussion_r311299462
##########
File path: sql/src/main/java/org/apache/druid/sql/avatica/DruidStatement.java
##########
@@ -183,11 +202,10 @@ public DruidStatement execute()
{
synchronized (lock) {
ensure(State.PREPARED);
-
try {
- final Sequence<Object[]> baseSequence =
yielderOpenCloseExecutor.submit(
- sqlLifecycle::execute
- ).get();
+ sqlLifecycle.setParameters(parameters);
+ sqlLifecycle.planAndAuthorize(authenticationResult);
Review comment:
Why did you move the call to `SqlLifecycle#planAndAuthorize()` from
`DruidStatement#prepare()` to here?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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]