[dlt] Export boolean[] values (#4082)

This commit is contained in:
Peter Johnson
2022-03-14 10:05:50 -07:00
committed by GitHub
parent f93c3331b3
commit fdfb31f164
2 changed files with 13 additions and 0 deletions

View File

@@ -120,6 +120,13 @@ int main(int argc, const char** argv) {
} else {
fmt::print(" invalid\n");
}
} else if (entry->second.type == "boolean[]") {
std::vector<int> val;
if (record.GetBooleanArray(&val)) {
fmt::print(" {}\n", fmt::join(val, ", "));
} else {
fmt::print(" invalid\n");
}
} else if (entry->second.type == "double[]") {
std::vector<double> val;
if (record.GetDoubleArray(&val)) {