Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit f8f2009

Browse files
committed
Update StandaloneQueryRunner to use ResultSetToken
1 parent bcd51c3 commit f8f2009

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

omniscidb/Tests/StandaloneQueryRunner.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,16 @@ int main(int argc, char** argv) {
155155
auto eo =
156156
ArrowSQLRunner::getExecutionOptions(/*allow_loop_joins=*/false, just_explain);
157157
auto co = ArrowSQLRunner::getCompilationOptions(dt);
158-
auto res = ArrowSQLRunner::runSqlQuery(
159-
R"(SELECT str, count(*) FROM test GROUP BY str;)", co, eo);
158+
auto res =
159+
ArrowSQLRunner::runSqlQuery(R"(select m, m_3, m_6, m_9 FROM test; )", co, eo);
160160
if (just_explain) {
161161
std::cout << "Explanation for " << device_type_str << res.getExplanation()
162162
<< std::endl;
163163
} else {
164-
auto rows = res.getRows();
164+
auto rows = res.getToken();
165165
CHECK(rows);
166166
std::cout << "Result for " << device_type_str << "\n"
167-
<< rows->contentToString() << std::endl;
167+
<< rows->contentToString(/*header=*/true) << std::endl;
168168
}
169169
}
170170
} catch (const std::exception& e) {

0 commit comments

Comments
 (0)