[
https://issues.apache.org/jira/browse/FLINK-23758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18113437#comment-18113437
]
Bettle commented on FLINK-23758:
--------------------------------
I have opened a draft pull request for this issue:
https://github.com/apache/flink/pull/29148
The change maps Expression.__invert__ to SQL NOT instead of IS NOT TRUE,
preserving SQL three-valued logic for nullable Boolean expressions. Regression
tests cover TRUE, FALSE, and NULL inputs.
Feedback is welcome.
> PyFlink __invert__ has wrong semantics
> --------------------------------------
>
> Key: FLINK-23758
> URL: https://issues.apache.org/jira/browse/FLINK-23758
> Project: Flink
> Issue Type: Bug
> Components: API / Python
> Affects Versions: 1.13.2
> Reporter: Ingo Bürk
> Assignee: Bettle
> Priority: Minor
> Labels: pull-request-available
>
> PyFlink currently implements __invert__ using IS NOT TRUE. However, IS NOT
> TRUE and NOT behave differently for NULL values.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)