zapr-oss / druidry

Java based Druid Query Generator library
Apache License 2.0
193 stars 86 forks source link

Enable ordering for DruidScanQuery #168

Open pm-src opened 3 years ago

pm-src commented 3 years ago

Code change needed:

in.zapr.druid.druidry.query.scan.DruidScanQuery.java

private String order;

@Builder private DruidCustomScanQuery(@NonNull DataSource dataSource, List virtualColumns, .......... ....... Long limit, Boolean legacy, Context context) { . . . this.order = order; if (order != null) { Preconditions.checkArgument((order.equals("ascending") || order.equals("descending")), "only order ascending or descending is supported"); } . . .

}

}

szymeker commented 2 years ago

Ready for review https://github.com/zapr-oss/druidry/pull/173