fix windowview populate

This commit is contained in:
Vxider 2022-05-12 10:34:44 +08:00
parent e65cfaecf8
commit 98f9cd4a51

View File

@ -400,9 +400,6 @@ void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
if (dictionary)
dictionary->formatImpl(settings, state, frame);
if (is_populate)
settings.ostr << (settings.hilite ? hilite_keyword : "") << " POPULATE" << (settings.hilite ? hilite_none : "");
if (is_watermark_strictly_ascending)
{
settings.ostr << (settings.hilite ? hilite_keyword : "") << " WATERMARK STRICTLY_ASCENDING" << (settings.hilite ? hilite_none : "");
@ -423,6 +420,9 @@ void ASTCreateQuery::formatQueryImpl(const FormatSettings & settings, FormatStat
lateness_function->formatImpl(settings, state, frame);
}
if (is_populate)
settings.ostr << (settings.hilite ? hilite_keyword : "") << " POPULATE" << (settings.hilite ? hilite_none : "");
if (select)
{
settings.ostr << (settings.hilite ? hilite_keyword : "") << " AS"