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

Function assertQuery

bolt/exec/tests/utils/QueryAssertions.cpp:990–997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

988 appender.EndRow();
989 }
990 }
991}
992
993DuckDBQueryResult DuckDbQueryRunner::execute(const std::string& sql) {
994 ::duckdb::Connection con(db_);
995 // Changing the default null order of NULLS FIRST used by DuckDB. Bolt uses
996 // NULLS LAST.
997 con.Query("PRAGMA default_null_order='NULLS LAST'");
998 auto duckDbResult = con.Query(sql);
999 verifyDuckDBResult(duckDbResult, sql);
1000 return duckDbResult;

Callers 15

TEST_FFunction · 0.85
assertQueryMethod · 0.85
TEST_FFunction · 0.85
assertSelectMethod · 0.85
assertSelectWithAggMethod · 0.85
TEST_FFunction · 0.85
assertQueryMethod · 0.85
TEST_FFunction · 0.85

Calls 9

readCursorFunction · 0.85
assertResultsOrderedFunction · 0.85
assertResultsFunction · 0.85
waitForTaskCompletionFunction · 0.85
assertEqualResultsFunction · 0.85
outputTypeMethod · 0.80
taskMethod · 0.80
valueMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected