[
https://issues.apache.org/jira/browse/FLINK-39122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18081017#comment-18081017
]
Dmitry Pavlov commented on FLINK-39122:
---------------------------------------
Just to clarify: the previous comment from Ignite TC Bot was not written by me
personally.
`ignitetcbot` is a technical account used for testing/automation and is
controlled by the Apache Ignite community. In any case, that message should not
be treated as my personal intent or commitment. I will rotate the account
password to be safe.
My main concern is that AI-assisted inbox processing might accidentally take on
additional commitments.
Sorry for the confusion.
> Decimals with incorrect precision lead to null value in PTF
> -----------------------------------------------------------
>
> Key: FLINK-39122
> URL: https://issues.apache.org/jira/browse/FLINK-39122
> Project: Flink
> Issue Type: Sub-task
> Components: Table SQL / Planner
> Reporter: Timo Walther
> Priority: Major
>
> Instead of a type error the following call leads to a null value for the
> decimal:
> {code}
> // execute a Flink SQL job and print the result locally
> tableEnv.fromCall(RulePtf.class, new
> BigDecimal("123.456")).execute().print();
> }
> /** A PTF that filters data based on a dynamic allowlist. */
> public static class RulePtf extends ProcessTableFunction<String> {
> public void eval(@DataTypeHint("DECIMAL(2, 2)") BigDecimal decimal)
> throws Exception {
> System.out.println(decimal);
> }
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)