[Bug] Query service process record repeatedly
- Dominant language
- Java
- Stars
- 3.4k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 396
Description
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar.
### Paimon version
Paimon 0.9
### Compute Engine
Flink 1.18
### Minimal reproduce step
1. Create paimon catelog
`
CREATE CATALOG paimon WITH (
'type'='paimon',
'warehouse'='file:/tmp/paimon'
);
`
`
USE CATALOG paimon;
`
2. Create table and insert one record
`CREATE TABLE DIM (k INT, v STRING, PRIMARY KEY(k) NOT ENFORCED) WITH ('bucket' = '1', 'deletion-vectors.enabled' = 'true');
`
`
INSERT INTO DIM VALUES (1, 'a');
`
3. Call Query Service
`
CALL sys.query_service('default.DIM', 1);
`



4. Insert another record
`
INSERT INTO DIM VALUES (2, 'b');
`
It shows records sent 4

### What doesn't meet your expectations?
Records sent should consistent with table record count
### Anything else?
_No response_
### Are you willing to submit a PR?
- [X] I'm willing to submit a PR!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue with Paimon 0.9 and Flink 1.18 using the CREATE CATALOG, table, INSERT, and CALL sys.query_service steps shown. Compare the records sent after the first and second inserts with the table record count. Done means the query service does not repeatedly process records and reports the expected count.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- data-engineering, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100