select nullif(count(col1),0) gives wrong result if in a view

Description

This is related to and MDEV-9576.

returns 3

creating a view with the same query and it returns 5.
to recreate ->

then

Environment

openbsd, windows

Assignee

Sergei Golubchik

Reporter

MartinL

Labels

None

Components

Fix versions

Affects versions

Priority

Critical
Configure