MCPcopy Create free account
hub / github.com/bytedance/bolt / TEST_F

Function TEST_F

bolt/substrait/tests/Substrait2BoltValuesNodeConversionTest.cpp:53–74  ·  view source on GitHub ↗

SELECT * FROM tmp

Source from the content-addressed store, hash-verified

51
52// SELECT * FROM tmp
53TEST_F(Substrait2BoltValuesNodeConversionTest, valuesNode) {
54 auto planPath = getDataFilePath("data/substrait_virtualTable.json");
55
56 ::substrait::Plan substraitPlan;
57 JsonToProtoConverter::readFromFile(planPath, substraitPlan);
58
59 auto boltPlan = planConverter_->toBoltPlan(substraitPlan);
60
61 RowVectorPtr expectedData = makeRowVector(
62 {makeFlatVector<int64_t>(
63 {2499109626526694126, 2342493223442167775, 4077358421272316858}),
64 makeFlatVector<int32_t>({581869302, -708632711, -133711905}),
65 makeFlatVector<double>(
66 {0.90579193414549275, 0.96886777112423139, 0.63235925003444637}),
67 makeFlatVector<bool>({true, false, false}),
68 makeFlatVector<int32_t>(3, nullptr, nullEvery(1))
69
70 });
71
72 createDuckDbTable({expectedData});
73 assertQuery(boltPlan, "SELECT * FROM tmp");
74}

Callers

nothing calls this directly

Calls 3

assertQueryFunction · 0.85
toBoltPlanMethod · 0.80
getDataFilePathFunction · 0.50

Tested by

no test coverage detected