Skip to content

Commit

Permalink
sqlp & joinp: add QSV_OUTPUT_BOM support
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Nov 19, 2023
1 parent d2f7f4b commit 9f8031d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/cmd/joinp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@ impl JoinStruct {
.with_time_format(self.time_format)
.with_float_precision(self.float_precision)
.with_null_value(self.null_value)
.include_bom(util::get_envvar_flag("QSV_OUTPUT_BOM"))
.finish(&mut results_df)?;

compress_output_if_needed(self.output)?;
Expand Down
1 change: 1 addition & 0 deletions src/cmd/sqlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ impl OutputMode {
.with_time_format(args.flag_time_format)
.with_float_precision(args.flag_float_precision)
.with_null_value(args.flag_wnull_value)
.include_bom(util::get_envvar_flag("QSV_OUTPUT_BOM"))
.finish(&mut df),
OutputMode::Json => JsonWriter::new(&mut w).finish(&mut df),
OutputMode::Parquet => {
Expand Down

0 comments on commit 9f8031d

Please sign in to comment.