Fullstop000 opened a new issue #9886:
URL: https://github.com/apache/druid/issues/9886
Please provide a detailed title (e.g. "Broker crashes when using TopN query
with Bound filter" instead of just "Broker crashes").
### Affected Version
0.17.0
### Description
I've used a javascript router strategy to pick brokers by query priority.
The strategy works well for native queries but it seems never affecting SQL
queries.
The strategy will print the query if it's captured by this strategy. But I
never see a SQL query being printed.
```
druid.router.strategies=[{"type": "javascript", "function": "function
(config,query){print(query);if(query.getContext){var
context=query.getContext();var priority=context.get('priority') || 0;
print(priority);var m=config.getTierToBrokerMap();var
size=m.values().size();if(size>0){var broker =
priority>10?m.values().toArray()[0]:m.values().toArray()[size-1];
print(broker); return broker;}}return null;}"}]
```
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]