Fix some test.

This commit is contained in:
Nikolai Kochetov 2024-07-25 13:17:21 +00:00
parent 4ebb189691
commit c5164fede8

View File

@ -1944,7 +1944,7 @@ ExpressionAnalysisResult::ExpressionAnalysisResult(
Block before_prewhere_sample = source_header;
if (sanitizeBlock(before_prewhere_sample))
{
prewhere_dag_and_flags->dag.updateHeader(before_prewhere_sample);
before_prewhere_sample = prewhere_dag_and_flags->dag.updateHeader(before_prewhere_sample);
auto & column_elem = before_prewhere_sample.getByName(query.prewhere()->getColumnName());
/// If the filter column is a constant, record it.
if (column_elem.column)
@ -1976,7 +1976,7 @@ ExpressionAnalysisResult::ExpressionAnalysisResult(
before_where_sample = source_header;
if (sanitizeBlock(before_where_sample))
{
before_where->dag.updateHeader(before_where_sample);
before_where_sample = before_where->dag.updateHeader(before_where_sample);
auto & column_elem
= before_where_sample.getByName(query.where()->getColumnName());