Skip to content

Conversation

@csun5285
Copy link
Contributor

@csun5285 csun5285 commented Oct 18, 2024

Proposed changes

In the current backend implementation, it is not correctly handle counts when is null predicate exists, so we forbid the storage layer's count currently.

for example:

select count(b) from test where b is null 

When apply the is null filter, the result array will fill the default value of the column type and the count operator can not detect whether the result is null, so the count operator compute the wrong result.

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@csun5285
Copy link
Contributor Author

run buildall

@github-actions
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 37.46% (9710/25920)
Line Coverage: 28.72% (80612/280635)
Region Coverage: 28.17% (41724/148103)
Branch Coverage: 24.74% (21207/85708)
Coverage Report: http://coverage.selectdb-in.cc/coverage/bf9369d82d9c29629785a43b93ab173478fce3b1_bf9369d82d9c29629785a43b93ab173478fce3b1/report/index.html

fix

fix
@csun5285
Copy link
Contributor Author

run buildall

Copy link
Member

@airborne12 airborne12 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Oct 21, 2024
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@924060929 924060929 changed the title [fix] (inverted index) Fix errors caused by enable_need_read_data_opt [fix](inverted index) Fix errors caused by enable_need_read_data_opt Oct 22, 2024
Copy link
Contributor

@zzzxl1993 zzzxl1993 left a comment

Choose a reason for hiding this comment

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

LGTM

@airborne12 airborne12 merged commit a17f3e2 into apache:master Oct 22, 2024
airborne12 pushed a commit to airborne12/apache-doris that referenced this pull request Oct 22, 2024
…pache#42064)

## Proposed changes

In the current backend implementation, it is not correctly handle counts
when `is null` predicate exists, so we forbid the storage layer's count
currently.

for example:
```
select count(b) from test where b is null 
```

When apply the is null filter, the result array will fill the default
value of the column type and the count operator can not detect whether
the result is null, so the count operator compute the wrong result.
airborne12 added a commit that referenced this pull request Oct 23, 2024
…42064 (#42248)

cherry pick from #42064

Co-authored-by: Sun Chenyang <csun5285@gmail.com>
airborne12 added a commit that referenced this pull request Oct 23, 2024
…42064 (#42247)

cherry pick from #42064

Co-authored-by: Sun Chenyang <csun5285@gmail.com>
csun5285 added a commit to csun5285/doris that referenced this pull request Oct 24, 2024
…pache#42064)

## Proposed changes

In the current backend implementation, it is not correctly handle counts
when `is null` predicate exists, so we forbid the storage layer's count
currently.

for example:
```
select count(b) from test where b is null 
```

When apply the is null filter, the result array will fill the default
value of the column type and the count operator can not detect whether
the result is null, so the count operator compute the wrong result.
airborne12 pushed a commit that referenced this pull request Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants