Skip to content

Fix reading empty set with prewhere dependent on alias column. - #7911

Merged
alexey-milovidov merged 1 commit into
masterfrom
prewhere_alias
Nov 26, 2019
Merged

alexey-milovidov merged 1 commit into
masterfrom
prewhere_alias

Conversation

@KochetovNicolai

Copy link
Copy Markdown
Member

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Bug Fix

Changelog entry (up to few sentences, required except for Non-significant/Documentation categories):
Fix error Not found column if query used prewhere dependent on table's alias and the result set was empty because of PK condition.

Detailed description (optional):
It was forgotten to execute sample_expression after reading from NullSource.

@KochetovNicolai KochetovNicolai added the pr-bugfix Pull request with bugfix, not backported by default label Nov 25, 2019
@KochetovNicolai

Copy link
Copy Markdown
Member Author

Can't find any related issue ...

@filimonov

filimonov commented Nov 25, 2019 •

Copy link
Copy Markdown
Contributor

Check that comment:
#971 (comment)

That looks somehow related too:
#2827

Maybe also related:
#3140
#2285
#2283

@KochetovNicolai

KochetovNicolai commented Nov 25, 2019 •

Copy link
Copy Markdown
Member Author

@filimonov thank you!

Comment in #971 was fixed by this pr. Won't add test cause it's the same.
#2827 is closed and I can't reproduce anything in it too.

@alexey-milovidov
alexey-milovidov merged commit 18a70ba into master Nov 26, 2019
nikitamikhaylov pushed a commit that referenced this pull request Dec 2, 2019
Fix reading empty set with prewhere dependent on alias column.

(cherry picked from commit 18a70ba)
@nikitamikhaylov

Copy link
Copy Markdown
Member

Conflicts with 19.16

@KochetovNicolai

Copy link
Copy Markdown
Member Author

I can try to resolve conflict if you want

@nikitamikhaylov

Copy link
Copy Markdown
Member

There are many references to this PR. So, I think your changes will be useful.

KochetovNicolai pushed a commit that referenced this pull request Dec 2, 2019
Fix reading empty set with prewhere dependent on alias column.

(cherry picked from commit 18a70ba)
KochetovNicolai pushed a commit that referenced this pull request Dec 2, 2019
Fix reading empty set with prewhere dependent on alias column.

(cherry picked from commit 18a70ba)
@KochetovNicolai

KochetovNicolai commented Dec 2, 2019 •

Copy link
Copy Markdown
Member Author

done for 19.16, 19.15 and 19.14

@nikitamikhaylov

Copy link
Copy Markdown
Member

Thanks!

KochetovNicolai pushed a commit that referenced this pull request Dec 2, 2019
Fix reading empty set with prewhere dependent on alias column.

(cherry picked from commit 18a70ba)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants