Replace manual Record::get
implementation
Let's simplify here
This commit is contained in:
parent
af34d5c062
commit
97acdaf435
|
@ -177,11 +177,9 @@ fn run_histogram(
|
||||||
match v {
|
match v {
|
||||||
// parse record, and fill valid value to actual input.
|
// parse record, and fill valid value to actual input.
|
||||||
Value::Record { val, .. } => {
|
Value::Record { val, .. } => {
|
||||||
for (c, v) in val.iter() {
|
if let Some(v) = val.get(col_name) {
|
||||||
if c == col_name {
|
if let Ok(v) = HashableValue::from_value(v.clone(), head_span) {
|
||||||
if let Ok(v) = HashableValue::from_value(v.clone(), head_span) {
|
inputs.push(v);
|
||||||
inputs.push(v);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user