ISSUES-3134 fix merge and distributed engine query stage#3159
ISSUES-3134 fix merge and distributed engine query stage#3159alexey-milovidov merged 4 commits intoClickHouse:masterfrom
Conversation
a7d28f2 to
3dc4172
Compare
|
Two tests have failed. |
There was a problem hiding this comment.
Changes to test behavior. zero should be different from non_existing. But I'm not sure.
There was a problem hiding this comment.
It's important to heave zeroes here.
There was a problem hiding this comment.
Maybe the previous test cases were problematic, but I'm not sure.
There was a problem hiding this comment.
It is not correct, because the query was SELECT x FROM test.merge_s64_u64 WHERE x IN (-1);.
There was a problem hiding this comment.
@KochetovNicolai I need some help : )
My current idea is to rerun the filter stream. but the required columns in the where_expression may no longer exist. can I get some advice here ? Code
There was a problem hiding this comment.
Maybe I need to push down the where_expression_info and remove_where_column ? Like prewhere_expression_info ?
958e75a to
866dacb
Compare
|
Done. |
|
Something is wrong: https://travis-ci.org/yandex/ClickHouse/builds/430907161#L8332 |
866dacb to
884eaca
Compare
884eaca to
e0e805b
Compare
|
fixed test failure and |
| /// If the processed_stage greater than FetchColumns and the block structure between streams is different. | ||
| /// the where expression maybe invalid because of convertingBlockInputStream. | ||
| /// So we need to throw exception. | ||
| if (!header_column.type->equals(*before_column.type.get()) && processed_stage > QueryProcessingStage::FetchColumns) |
There was a problem hiding this comment.
added new exception. related test cases: https://github.com/yandex/ClickHouse/pull/3159/files#diff-703c5c0ba023631e656f4ed2d2df4c39R79.
Align
processed_stagewith subqueries when not distributed tables.#3134 #3110
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en