mirror of
https://github.com/apache/druid.git
synced 2025-02-27 14:00:18 +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)) {
|
||||
final Column retVal = extraColumns.get(name);
|
||||
if (retVal == null) {
|
||||
return null;
|
||||
}
|
||||
if (numRows() == rows.size()) {
|
||||
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