MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / InitSimpleSchema

Function InitSimpleSchema

src/sdk/sql_request_row_test.cc:81–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void InitSimpleSchema(::hybridse::vm::Schema* schema) {
82 {
83 ::hybridse::type::ColumnDef* column = schema->Add();
84 column->set_type(::hybridse::type::kInt32);
85 column->set_name("col0");
86 }
87 {
88 ::hybridse::type::ColumnDef* column = schema->Add();
89 column->set_type(::hybridse::type::kVarchar);
90 column->set_name("col1");
91 }
92 {
93 ::hybridse::type::ColumnDef* column = schema->Add();
94 column->set_type(::hybridse::type::kInt64);
95 column->set_name("col2");
96 }
97}
98
99TEST_F(SQLRequestRowTest, normal_test) {
100 ::hybridse::vm::Schema schema;

Callers 2

TEST_FFunction · 0.85
NewSimpleBatchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected