Skip to content

Commit

Permalink
tweaking
Browse files Browse the repository at this point in the history
  • Loading branch information
xzhangxian1008 committed May 6, 2023
1 parent 315eaa7 commit 4d24724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbms/src/WindowFunctions/tests/gtest_first_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ class FirstValue : public DB::tests::ExecutorTest
actual_input[1].name = "order";
actual_input[2].name = value_col_name;
context.addMockTable(
{"test_db", "test_table_for_lead_lag"},
{"test_db", "test_table_for_first_value"},
{{"partition", TiDB::TP::TypeLongLong, actual_input[0].type->isNullable()},
{"order", TiDB::TP::TypeLongLong, actual_input[1].type->isNullable()},
{value_col_name, value_tp, actual_input[2].type->isNullable()}},
actual_input);

auto request = context
.scan("test_db", "test_table_for_lead_lag")
.scan("test_db", "test_table_for_first_value")
.sort({{"partition", false}, {"order", false}}, true)
.window(function, {"order", false}, {"partition", false}, MockWindowFrame{})
.build(context);
Expand Down

0 comments on commit 4d24724

Please sign in to comment.