Skip to content

Commit

Permalink
sqlp: replace PlSmallStr::const_default with PlSmallStr::EMPTY
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Sep 2, 2024
1 parent 2798744 commit e734b79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cmd/sqlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,13 +562,13 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
};

let rnull_values = if args.flag_rnull_values == "<empty string>" {
vec![PlSmallStr::const_default()]
vec![PlSmallStr::EMPTY]
} else {
args.flag_rnull_values
.split(',')
.map(|value| {
if value == "<empty string>" {
PlSmallStr::const_default()
PlSmallStr::EMPTY
} else {
PlSmallStr::from_str(value)
}
Expand Down Expand Up @@ -636,10 +636,10 @@ pub fn run(argv: &[&str]) -> CliResult<()> {

// gated by log::log_enabled!(log::Level::Debug) to avoid the
// relatively expensive overhead of generating the debug string
// for the optimization state struct
// for the optimization flags struct
let debuglog_flag = log::log_enabled!(log::Level::Debug);
if debuglog_flag {
log::debug!("Optimization state: {optflags:?}");
log::debug!("Optimization flags: {optflags:?}");
log::debug!(
"Delimiter: {delim} Infer_schema_len: {infer_len} try_parse_dates: {parse_dates} \
ignore_errors: {ignore_errors}, low_memory: {low_memory}, float_precision: \
Expand Down

0 comments on commit e734b79

Please sign in to comment.