Skip to content

"Best practice" for testing whether boolean field exists is broken #14422

@TheVastyDeep

Description

@TheVastyDeep

PR 12899 modified the best-practice doc to add a way to test whether a boolean field exists by using mutate+add_field to add a static value to [@metadata] and then use mutate+copy to conditinally overwrite. Nice trick! Unfortunately it is broken. Filter decoration (add_field etc) happens after the filter function executes. So the copy is done before the add_field. It has to be split into two mutate filters.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions