Skip to content

[BUG] The top rare command should not return null #4684

@LantaoJin

Description

@LantaoJin

What is the bug?
The current top rare command return null which cannot be pushed to DSL (null bucket is unsupported in terms agg).

For example:

ID Type
1 "200"
2 "404"
3 null
4 "200"
5 null
6 null
7 "200"
8 "404"
9 null
10 "200"
source = t | top Type

Returns

Type count
"200" 4
null 4
"404" 2

What is the expected behavior?

source = t | top Type

Returns

Type count
"200" 4
"404" 2

SPL has the similar behavior (no null outputs) on top and rare.

What is the solution your purpose?

  1. add a new argument usenull=true (no breaking)
  2. just correct the current behavior (treat as a bug)

Do you have any additional context?
#4671

Metadata

Metadata

Assignees

Labels

PPLPiped processing languagebugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions