NULLIF returns unexpected result with a YEAR field

Description

returns

This is Ok that YEAR=00 is compared as equal to 2000, but the return value for NULLIF(2001,a) does not look Ok. The expected values is 2001, not 1.

Environment

None

Status

Assignee

Alexander Barkov

Reporter

Alexander Barkov

Labels

None

Components

Fix versions

Priority

Major
Configure