Add values command (see #7166) (#7583)

This commit is contained in:
Leon
2022-12-24 04:49:19 +10:00
committed by GitHub
parent 852ec3f9a0
commit b16b3c0b7f
11 changed files with 246 additions and 14 deletions

View File

@ -5,7 +5,7 @@ pub fn get_columns<'a>(input: impl IntoIterator<Item = &'a Value>) -> Vec<String
let mut columns = vec![];
for item in input {
if let Value::Record { cols, vals: _, .. } = item {
if let Value::Record { cols, .. } = item {
for col in cols {
if !columns.contains(col) {
columns.push(col.to_string());