abhishekrb19 opened a new issue #8800: Ability to provide different sort 
ordering for Druid SQL queries.
URL: https://github.com/apache/incubator-druid/issues/8800
 
 
   ### Description
   
   Native Druid queries support different [sort 
ordering](https://druid.apache.org/docs/latest/querying/sorting-orders.html
   ) and can be specified like [this]( 
https://druid.apache.org/docs/latest/querying/topnmetricspec.html):
   ```json
   "metric": {
       "type": "dimension",
       "ordering": "lexicographic",
       "previousStop": "<previousStop_value>"
   }
   ```
   AFAIK, Druid SQL always defaults to `lexicographic` ordering - having the 
ability to express another ordering would be great. My first thought was an 
`ordering` param could be added to a query context like the following:
   ```json
   "context": {"timeout": 1000, "ordering": "numeric"}
   ```
   If `ordering` is supplied, DruidSql and NativeDruid will honor that. 
Thoughts?

----------------------------------------------------------------
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]

Reply via email to