Skip to content

Commit

Permalink
fixup! feat: Allow specifying alt delimiter when reading csv
Browse files Browse the repository at this point in the history
  • Loading branch information
scsmithr committed Jan 7, 2024
1 parent f57c2d8 commit ec49e27
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions crates/sqlbuiltins/src/functions/table/object_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ impl OptionReader for CsvOptionReader {
type Format = CsvFormat;

fn read_options(opts: &HashMap<String, FuncParamValue>) -> Result<Self::Format> {
let mut format = CsvFormat::default()
// .with_file_compression_type(file_compression)
.with_schema_infer_max_rec(Some(20480));
let mut format = CsvFormat::default().with_schema_infer_max_rec(Some(20480));

if let Some(delimiter) = opts.get("delimiter") {
let delimiter: String = delimiter.clone().try_into()?;
Expand Down

0 comments on commit ec49e27

Please sign in to comment.