MCPcopy Create free account
hub / github.com/apache/arrow / CheckOrderByInvalid

Function CheckOrderByInvalid

cpp/src/arrow/acero/order_by_node_test.cc:70–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void CheckOrderByInvalid(OrderByNodeOptions options, const std::string& message) {
71 std::shared_ptr<Table> input = TestTable();
72 Declaration plan = Declaration::Sequence(
73 {{"table_source", TableSourceNodeOptions(input)}, {"order_by", options}});
74 EXPECT_RAISES_WITH_MESSAGE_THAT(Invalid, testing::HasSubstr(message),
75 DeclarationToStatus(std::move(plan)));
76}
77
78TEST(OrderByNode, Basic) {
79 CheckOrderBy(OrderByNodeOptions(Ordering{{SortKey("up")}}));

Callers 1

TESTFunction · 0.85

Calls 3

TableSourceNodeOptionsFunction · 0.85
DeclarationToStatusFunction · 0.85
TestTableFunction · 0.70

Tested by

no test coverage detected