[ 
https://issues.apache.org/jira/browse/FLINK-41558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18155177#comment-18155177
 ] 

Robin Varghese commented on FLINK-41558:
----------------------------------------

Hi [~martijnvisser] , Can I get assigned to this issue. 

The message tells users to set table.exec.sink.not-null-enforcer to DROP, but a 
compiled plan uses the value stored in the plan and ignores the job 
configuration. I'll append one sentence to the message and update the test 
assertion. No behavior change.

New message:

Column '<name>' is NOT NULL, however, a null value is being written into it. 
You can set job configuration 'table.exec.sink.not-null-enforcer'='DROP' to 
suppress this exception and drop such records silently. A compiled plan ignores 
the job configuration and uses the value stored in the plan, so set the option 
before compiling the plan.

I'm leaving FLINK-41019 (the plan not recording 
table.exec.sink.nested-constraint-enforcer) out of this change, since that is a 
separate problem.

If that's fine , I'll open a PR.

> NOT NULL enforcer error suggests an option that a compiled plan ignores
> -----------------------------------------------------------------------
>
>                 Key: FLINK-41558
>                 URL: https://issues.apache.org/jira/browse/FLINK-41558
>             Project: Flink
>          Issue Type: Improvement
>          Components: Table SQL / Planner
>            Reporter: Martijn Visser
>            Priority: Minor
>              Labels: starter
>
> The {{EnforcerException}} for a NULL in a NOT NULL column says {{You can set 
> job configuration 'table.exec.sink.not-null-enforcer'='DROP' to suppress this 
> exception}}. For a job that runs a compiled plan, the sink uses the value 
> stored in the plan, so setting the option before {{EXECUTE PLAN}} changes 
> nothing and the job fails again. The message could mention that a compiled 
> plan uses its stored value.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to