mirror of
https://github.com/apache/druid.git
synced 2025-02-27 22:09:12 +00:00
fix NPE (#16897)
This commit is contained in:
parent
8181ef627a
commit
964cf47bb5
@ -144,6 +144,9 @@ public class ArrayListRowsAndColumns<RowType> implements AppendableRowsAndColumn
|
|||||||
{
|
{
|
||||||
if (!rowSignature.contains(name)) {
|
if (!rowSignature.contains(name)) {
|
||||||
final Column retVal = extraColumns.get(name);
|
final Column retVal = extraColumns.get(name);
|
||||||
|
if (retVal == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (numRows() == rows.size()) {
|
if (numRows() == rows.size()) {
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
type: "operatorValidation"
|
||||||
|
|
||||||
|
sql: |
|
||||||
|
SELECT
|
||||||
|
cityName,
|
||||||
|
array_concat_agg(ARRAY[cityName], 10000) over (PARTITION BY cityName)
|
||||||
|
FROM wikipedia
|
||||||
|
WHERE countryName='Austria' and cityName is not null
|
||||||
|
GROUP BY cityName
|
||||||
|
|
||||||
|
expectedResults:
|
||||||
|
- ["Horsching","[\"Horsching\"]"]
|
||||||
|
- ["Vienna","[\"Vienna\"]"]
|
Loading…
x
Reference in New Issue
Block a user