Skip to content
Snippets Groups Projects
Commit aad0446c authored by Marek Pasieka's avatar Marek Pasieka
Browse files

extracted topN limit into constant

parent 4c8535d7
Branches
Tags
No related merge requests found
......@@ -84,7 +84,7 @@
::total (merge defaults {:queryType :timeseries})
::grouped-timeseries (merge defaults {:queryType :timeseries})
::topN (merge defaults {:queryType :topN
:threshold 1000})
:threshold i/druid-topN-max-results})
::groupBy (merge defaults {:queryType :groupBy})}))
......
......@@ -19,6 +19,13 @@
https://support.office.com/en-nz/article/Excel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3"
1048576)
(def ^:const druid-topN-max-results
"Maximum number of rows the topN query in Druid should return. Huge values cause significant issues with the engine.
Coming from the default value hardcoded in the Druid engine itself
http://druid.io/docs/latest/querying/topnquery.html"
1000)
;;; # ------------------------------------------------------------ DYNAMIC VARS ------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment