Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] aggregate function in partial update inconsistency #5179

Open
1 of 2 tasks
fantasy2100 opened this issue Feb 28, 2025 · 2 comments
Open
1 of 2 tasks

[Bug] aggregate function in partial update inconsistency #5179

fantasy2100 opened this issue Feb 28, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@fantasy2100
Copy link

Search before asking

  • I searched in the issues and found nothing similar.

Paimon version

1.0.0

Compute Engine

Flink

Minimal reproduce step

CREATE TABLE t1
(
k INT,
a INT,
b INT,
g_1 INT,
PRIMARY KEY (k) NOT ENFORCED
) WITH (
'merge-engine' = 'partial-update',
'fields.a.aggregate-function' = 'sum',
'fields.b.aggregate-function' = 'last_non_null_value',
'fields.g_1.sequence-group' = 'a,b'
);

INSERT INTO t1 VALUES (1, 1, 1, 1);
INSERT INTO t1 VALUES (1, 2, 2, 2);
INSERT INTO t1 VALUES (1, 3, 3, 1);

What doesn't meet your expectations?

when g_1 of third record is smaller, third record should be ignored。
I expect the result to be: 1,3,2,2

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@fantasy2100 fantasy2100 added the bug Something isn't working label Feb 28, 2025
@fantasy2100
Copy link
Author

"SELECT * FROM t1"
current output: 1,6,2,2
expect output: 1,3,2,2

@JingsongLi
Copy link
Contributor

It is sum... should be 6...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants