Closed slipset closed 7 years ago
I was thinking that perhaps we should stop enforcing schema validation at runtime, and let us enable it only during tests, we could achieve that turning query
into a s/defn
and let developers use schema/with-fn-validation
at will.
Sounds reasonable, but then you'd have to rewrite the schemas to spec (but that's maybe planned?).
No it's a schema feature so no need for spec, you can see how it's supposed to be used here: https://github.com/plumatic/schema#beyond-type-hints, I use it extensively on many projects.
Even though I like the query-validations, there are times when I need to do stuff that the schemas are not allowing. Example at hand right now is working with
thetaSketches
, http://druid.io/docs/latest/development/extensions-core/datasketches-aggregators.html which is not currently supported by the schema. As a work around I do thisin my code.
Would you want this in cli-druid? if not, please just close this issue.