Fix error message for groupByEnableMultiValueUnnesting. (#12325)
authorGian Merlino <gian@imply.io>
Thu, 10 Mar 2022 19:37:24 +0000 (11:37 -0800)
committerGitHub <noreply@github.com>
Thu, 10 Mar 2022 19:37:24 +0000 (11:37 -0800)
commitcb2b2b696d9ff391d4814552918ea6c5e94a6fc6
tree6bc89b5fc7b35a7dd749b3a938c1ade51bc6ce47
parent2efb74ff1e4a9921e236a21475978822be57fe11
Fix error message for groupByEnableMultiValueUnnesting. (#12325)

* Fix error message for groupByEnableMultiValueUnnesting.

It referred to the incorrect context parameter.

Also, create a dedicated exception class, to allow easier detection of this
specific error.

* Fix other test.

* More better error messages.

* Test getDimensionName method.
processing/src/main/java/org/apache/druid/query/groupby/epinephelinae/GroupByMergingQueryRunnerV2.java
processing/src/main/java/org/apache/druid/query/groupby/epinephelinae/GroupByQueryEngineV2.java
processing/src/main/java/org/apache/druid/query/groupby/epinephelinae/UnexpectedMultiValueDimensionException.java [new file with mode: 0644]
processing/src/main/java/org/apache/druid/query/groupby/epinephelinae/column/ArrayDoubleGroupByColumnSelectorStrategy.java
processing/src/main/java/org/apache/druid/query/groupby/epinephelinae/column/ArrayLongGroupByColumnSelectorStrategy.java
processing/src/main/java/org/apache/druid/query/groupby/epinephelinae/column/ArrayStringGroupByColumnSelectorStrategy.java
processing/src/test/java/org/apache/druid/query/groupby/GroupByQueryRunnerTest.java
sql/src/test/java/org/apache/druid/sql/calcite/CalciteMultiValueStringQueryTest.java