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

[core] Fix FieldCountAgg should return the same data type as fieldType. #3924

Merged

Conversation

LinMingQiang
Copy link
Contributor

Purpose

CREATE  TABLE testAggregation ( 
id STRING  
,name STRING 
,dt STRING 
,PRIMARY KEY(id, dt) NOT ENFORCED 
,agg_count bigint 
) PARTITIONED BY (dt) WITH ( 
'bucket' = '1' 
,'auto-create' = 'false' 
,'fields.agg_count.aggregate-function' = 'count' 
,'connector' = 'paimon' 
,'merge-engine' = 'aggregation' 
);

insert datas to trigger compaction.

throw ClassCastException :

image

FieldType is Bigint type, but return Integer type.

image

Eventually, an error occurs when executing method getLong :

image

Tests

API and Format

Documentation

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@JingsongLi JingsongLi merged commit 3e61612 into apache:master Aug 9, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants