| 729 | } // namespace |
| 730 | |
| 731 | TEST_F(RowContainerTest, storeExtractArrayOfVarchar) { |
| 732 | // Make a string vector with two rows each having 2 elements. |
| 733 | // Here it is important, that one of the 1st row's elements has more than 12 |
| 734 | // characters (14 and 13 in this case), since 12 is the number of chars being |
| 735 | // inlined in the String View. |
| 736 | bytedance::bolt::test::VectorMaker vectorMaker{pool_.get()}; |
| 737 | std::vector<std::string> strings{ |
| 738 | "aaaaaaaaaaaaaa", "bbbbbbbbbbbbb", "cccccccc", "ddddd"}; |
| 739 | std::vector<std::vector<StringView>> elements(2); |
| 740 | elements[0].emplace_back(strings[0]); |
| 741 | elements[0].emplace_back(strings[1]); |
| 742 | elements[1].emplace_back(strings[2]); |
| 743 | elements[1].emplace_back(strings[3]); |
| 744 | auto input = vectorMaker.arrayVector<StringView>(elements); |
| 745 | roundTrip(input); |
| 746 | } |
| 747 | |
| 748 | TEST_F(RowContainerTest, storeExtractArrayOfBigint) { |
| 749 | // Make a string vector with two rows each having 2 elements. |
nothing calls this directly
no test coverage detected