MCPcopy Create free account
hub / github.com/apache/orc / writeVersion1999

Function writeVersion1999

c++/test/CreateTestFiles.cc:64–80  ·  view source on GitHub ↗

* Create a file from a future version 19.99. */

Source from the content-addressed store, hash-verified

62 * Create a file from a future version 19.99.
63 */
64void writeVersion1999() {
65 orc::proto::Metadata meta;
66 orc::proto::Footer footer;
67 footer.set_header_length(3);
68 footer.set_content_length(3);
69 orc::proto::Type* type = footer.add_types();
70 type->set_kind(orc::proto::Type_Kind_STRUCT);
71 footer.set_number_of_rows(0);
72 footer.set_row_index_stride(10000);
73 orc::proto::ColumnStatistics* stats = footer.add_statistics();
74 stats->set_number_of_values(0);
75 stats->set_has_null(false);
76 std::vector<std::uint32_t> version;
77 version.push_back(19);
78 version.push_back(99);
79 writeCustomOrcFile("version1999.orc", meta, footer, version, 1);
80}
81
82int main(int, char*[]) {
83 writeVersion1999();

Callers 1

mainFunction · 0.85

Calls 1

writeCustomOrcFileFunction · 0.85

Tested by

no test coverage detected