pub(crate) fn split_cols(line: &str, expected_columns: usize) -> Vec<&str> {
    if expected_columns == 1 {
        vec![line.trim()]
    } else {
        line.split_whitespace().collect()
    }
}
/// Split on whitespace to normalize multiple spaces to one space. This happens
/// unconditionally in Cockroach mode, regardless of the sort option.
///
/// TODO: this doesn't have the whitespace-collapsing behavior for
/// single-column values that cockroach relies on
Split on whitespace to normalize multiple spaces to one space. This happens
unconditionally in Cockroach mode, regardless of the sort option.

this doesn't have the whitespace-collapsing behavior for
single-column values that cockroach relies on
Split on whitespace to normalize multiple spaces to one space . This happens unconditionally in Cockroach mode regardless of the sort option . this doesn ' t have the whitespace - collapsing behavior for single - column values that cockroach relies on
pub(crate) fn split_cols(line: &str, expected_columns: usize) -> Vec<&str> {
    if expected_columns == 1 {
        vec![line.trim()]
    } else {
        line.split_whitespace().collect()
    }
}
pub ( crate ) fn split_cols ( line : & str , expected_columns : usize ) -> Vec < & str > { if expected_columns == 1 { vec ! [ line trim ( ) ] } else { line . split_whitespace ( ) . collect ( ) } }
Split on whitespace to normalize multiple spaces to one space.
Split on whitespace to normalize multiple spaces to one space .
line
&str
expected_columns
usize
line
&str
expected_columns
usize