OpenSearch/sql/server
Nik Everett e989f465bb SQL: Switch is aggs only to OO (elastic/x-pack-elasticsearch#3432)
Switches the "is this query aggs only?" question from pattern matching
on the column tree to an OO-style "ask the columns if they can be aggs
only" method.

I expect this could have been less code if I was willing to define
`supportedByAggsOnlyQuery` as `true` at the top of the
`ProcessorDefinition` object tree and override it only on nodes
`ReferenceInput` and `ScoreProcessorDefinition` but this feels dirty to
me. I tend to think of a superclass as a list of questions that all the
subclasses have to answer rather than a list of behaviors to share.
Pulling the `return true` up saves a few lines of code but breaks my
ability to reason about subclasses.


Original commit: elastic/x-pack-elasticsearch@b1338543cb
2017-12-27 14:16:22 -05:00
..
licenses Revert "Revert "Merge branch 'feature/sql'"" 2017-12-13 10:19:31 -05:00
src SQL: Switch is aggs only to OO (elastic/x-pack-elasticsearch#3432) 2017-12-27 14:16:22 -05:00
build.gradle SQL: Switch CLI to REST protocol (elastic/x-pack-elasticsearch#3342) 2017-12-22 20:42:13 -10:00