<p dir="auto">My zookeeper version is 3.5.5，My druid version 0.22.0 ,How can I solve it，thank you .</p>
<p dir="auto">Submitting GroupBy queries to the JSON query API returns a 500 when given duplicate output name columns. For example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
    &quot;context&quot;: {&quot;queryId&quot;: &quot;010b5fa5-9a45-4614-8c0b-acaa747c2af0&quot;},
    &quot;dataSource&quot;: &quot;Famous_Duets&quot;,
    &quot;aggregations&quot;: [{
        &quot;fieldName&quot;: &quot;count&quot;,
        &quot;name&quot;: &quot;count&quot;,
        &quot;type&quot;: &quot;count&quot;
    }],
    &quot;dataSource&quot;: &quot;my_datasource&quot;,
    &quot;dimensions&quot;: [{
        &quot;dimension&quot;: &quot;Female_Singer&quot;,
        &quot;outputName&quot;: &quot;Singer&quot;,
        &quot;type&quot;: &quot;default&quot;
    }, {
        &quot;dimension&quot;: &quot;Male_Singer&quot;,
        &quot;outputName&quot;: &quot;Singer&quot;,
        &quot;type&quot;: &quot;default&quot;
    }],
    &quot;granularity&quot;: &quot;all&quot;,
    &quot;intervals&quot;: [&quot;2017-06-20T14:51:00Z/2017-06-20T18:27:00Z&quot;],
    &quot;queryType&quot;: &quot;groupBy&quot;
}"><pre class="notranslate"><code class="notranslate">{
    "context": {"queryId": "010b5fa5-9a45-4614-8c0b-acaa747c2af0"},
    "dataSource": "Famous_Duets",
    "aggregations": [{
        "fieldName": "count",
        "name": "count",
        "type": "count"
    }],
    "dataSource": "my_datasource",
    "dimensions": [{
        "dimension": "Female_Singer",
        "outputName": "Singer",
        "type": "default"
    }, {
        "dimension": "Male_Singer",
        "outputName": "Singer",
        "type": "default"
    }],
    "granularity": "all",
    "intervals": ["2017-06-20T14:51:00Z/2017-06-20T18:27:00Z"],
    "queryType": "groupBy"
}
</code></pre></div>
<p dir="auto">Note that <code class="notranslate">Singer</code> is the outputName for more than one groupBy dimension. The query response is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{&quot;error&quot;:&quot;Unknown exception&quot;}"><pre class="notranslate"><code class="notranslate">{"error":"Unknown exception"}
</code></pre></div>
<p dir="auto">Obviously, the query is malformed, but returning the error in this response might be helpful. The way I tracked it down was in the logs:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2017-06-20T18:49:09,604 INFO [qtp1665324560-197[groupBy_Famous_Duets_010b5fa5-9a45-4614-8c0b-acaa747c2af0]] io.druid.server.QueryResource - Unknown exception [010b5fa5-9a45-4614-8c0b-acaa747c2af0]"><pre class="notranslate"><code class="notranslate">2017-06-20T18:49:09,604 INFO [qtp1665324560-197[groupBy_Famous_Duets_010b5fa5-9a45-4614-8c0b-acaa747c2af0]] io.druid.server.QueryResource - Unknown exception [010b5fa5-9a45-4614-8c0b-acaa747c2af0]
</code></pre></div>
<p dir="auto">Later in the logs, a log containing:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Dimension[Singer] occurred more than once in InputRow"><pre class="notranslate"><code class="notranslate">Dimension[Singer] occurred more than once in InputRow
</code></pre></div>
<p dir="auto">Tipped me off to what the error was.</p>