Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Sep 9, 2023
1 parent c67f5b4 commit 7592067
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ Big thanks to @rzmk for all the work on the website! To @a5dur for all the QA wo

### Changed
* `flatten`: refactor for performance https://github.com/jqnatividad/qsv/pull/1227
* `validate`: improved utf8 error mesages https://github.com/jqnatividad/qsv/pull/1256
* `apply` & `applydp`: improve usage text in relation to multi-column capabilites https://github.com/jqnatividad/qsv/pull/1257
* `validate`: improved utf8 error messages https://github.com/jqnatividad/qsv/pull/1256
* `apply` & `applydp`: improve usage text in relation to multi-column capabilities https://github.com/jqnatividad/qsv/pull/1257
* qsv-cache now set to ~/.qsv-cache by default https://github.com/jqnatividad/qsv/pull/1265
* Download file helper refactor https://github.com/jqnatividad/qsv/pull/1267
* Benchmark Update by @minhajuddin2510 in https://github.com/jqnatividad/qsv/pull/1237
Expand Down Expand Up @@ -611,7 +611,7 @@ When sniffing a URL with --no-infer, it only sniff's the first downloaded chunk,
* `stats`: use extend_from_slice for readability https://github.com/jqnatividad/qsv/commit/23275e2e8ef30bdc101293084bce71e651b3222a
* `validate`: do not panic if the input is not UTF-8 https://github.com/jqnatividad/qsv/commit/532cd012de0866250be2dc19b6e02ffa27b3c9fb
* `sniff`: simplify getting stdin last_modified property; return detected mime type in JSON error response https://github.com/jqnatividad/qsv/commit/01975912ae99fe0a7b38cf741f3dfbcf2b9dc486
* `luau`: upadte embedded Luau from 0.573 to 0.576
* `luau`: update embedded Luau from 0.573 to 0.576
* Update nightly build instructions
* Bump qsv-sniffer from 0.9.1 to 0.9.2 by @dependabot in https://github.com/jqnatividad/qsv/pull/972
* Bump tokio from 1.28.0 to 1.28.1 by @dependabot in https://github.com/jqnatividad/qsv/pull/973
Expand Down Expand Up @@ -1060,7 +1060,7 @@ CSV rows that start with the comment character are skipped. https://github.com/j

### Added
* `joinp`: new join command powered by [Pola.rs](https://pola.rs). This is just the first of more commands that will leverage the Pola.rs engine. https://github.com/jqnatividad/qsv/pull/798
* `luau`: added random acess mode; major refactor as we prepare to use `luau` as qsv's [DSL](https://en.wikipedia.org/wiki/Domain-specific_language); added `qsv_log` helper that can be called from Luau scripts to facilitate development of [full-fledged data-wrangling scripts](https://github.com/jqnatividad/qsv/blob/9cad3396a8f56d2c2136c843078d5635324539a5/tests/test_luau.rs#L224-L247). https://github.com/jqnatividad/qsv/pull/805 and https://github.com/jqnatividad/qsv/pull/806
* `luau`: added random access mode; major refactor as we prepare to use `luau` as qsv's [DSL](https://en.wikipedia.org/wiki/Domain-specific_language); added `qsv_log` helper that can be called from Luau scripts to facilitate development of [full-fledged data-wrangling scripts](https://github.com/jqnatividad/qsv/blob/9cad3396a8f56d2c2136c843078d5635324539a5/tests/test_luau.rs#L224-L247). https://github.com/jqnatividad/qsv/pull/805 and https://github.com/jqnatividad/qsv/pull/806
* `sniff`: added URL & re-enabled stdin support; URL support features sampling only the required number of rows to sniff the metadata without downloading the entire file; expanded sniff metadata returned; added `--progressbar` option for URL sniffing https://github.com/jqnatividad/qsv/pull/812
* `sniff`: added `--timeout` option for URL inputs; now runs async from all the binary variants https://github.com/jqnatividad/qsv/pull/813

Expand Down Expand Up @@ -1180,7 +1180,7 @@ Note that stdin support was shortly re-enabled in https://github.com/jqnatividad
- quoted identifiers are also considered unsafe, unless conditional mode is used
- verbose modes now also return a list of duplicate header names
* update MSRV to 1.67.0
* cargo update bump depedencies
* cargo update bump dependencies
* disable optimization on test profile for faster CI compilation, which was taking much longer than test run time
* optimize prebuilt nightlies to compile with target-cpu=native
* pin Rust nightly to 2023-02-01
Expand Down Expand Up @@ -2941,7 +2941,7 @@ They are now only enabled when these features are enabled during install/build.
- Auto-publish binaries for more platforms on release
- added combo-test for sort-dedup-sort (see [discussion #80](https://github.com/jqnatividad/qsv/discussions/80#discussioncomment-1610190))
- New environment variables galore
- `QSV_DEFAULT_DELIMITER` - single ascii character to use as delimiter. Overrides `--delimeter` option. Defaults to "," (comma) for CSV files and "\t" (tab) for TSV files, when not set. Note that this will also set the delimiter for qsv's output. Adapted from [xsv PR](https://github.com/BurntSushi/xsv/pull/94) by [@camerondavison](https://github.com/camerondavison).
- `QSV_DEFAULT_DELIMITER` - single ascii character to use as delimiter. Overrides `--delimiter` option. Defaults to "," (comma) for CSV files and "\t" (tab) for TSV files, when not set. Note that this will also set the delimiter for qsv's output. Adapted from [xsv PR](https://github.com/BurntSushi/xsv/pull/94) by [@camerondavison](https://github.com/camerondavison).
- `QSV_NO_HEADERS` - when set, the first row will **NOT** be interpreted as headers. Supersedes `QSV_TOGGLE_HEADERS`.
- `QSV_MAX_JOBS` - number of jobs to use for parallelized commands (currently `frequency`, `split` and `stats`). If not set, max_jobs is set
to number of logical processors divided by four. See [Parallelization](#parallelization) for more info.
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ Format multiple date columns in file.csv to ISO 8601/RFC 3339 format:
$ qsv apply datefmt 'Open Date,Modified Date,Closed Date' file.csv
Format all columns that end with "_date" case-insensitve in file.csv to ISO 8601/RFC 3339 format:
Format all columns that end with "_date" case-insensitive in file.csv to ISO 8601/RFC 3339 format:
$ qsv apply datefmt '\(?i)_date$\' file.csv
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ before processing it with qsv - e.g. to convert an ISO-8859-1 encoded file to UT
You can change this behavior with the --encoding-errors option.
See https://github.com/jqnatividad/qsv#utf-8-encoding fpr more details.
See https://github.com/jqnatividad/qsv#utf-8-encoding for more details.
This command is typically used at the beginning of a data pipeline (thus the name `input`)
to normalize & prepare CSVs for further processing with other qsv commands.
Expand Down
4 changes: 2 additions & 2 deletions src/cmd/sqlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ Example queries:
qsv sqlp data.csv data2.csv data3.csv data4.csv script.sql --format json --output data.json
# use Common Table Expressions (CTEs) using WITH to simplify complex queries
qsv sqlp people.csv "WITH millenials AS (SELECT * FROM people WHERE age >= 25 and age <= 40) \
SELECT * FROM millenials WHERE STARTS_WITH(name,'C')"
qsv sqlp people.csv "WITH millennials AS (SELECT * FROM people WHERE age >= 25 and age <= 40) \
SELECT * FROM millennials WHERE STARTS_WITH(name,'C')"
# CASE statement
qsv sqlp data.csv "select CASE WHEN col1 > 10 THEN 'foo' WHEN col1 > 5 THEN 'bar' ELSE 'baz' END from data"
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
if let csv::ErrorKind::Utf8 { pos, err } = e.kind() {
let header_error = json!({
"errors": [{
"title" : "Header UTF-8 validation errorr",
"title" : "Header UTF-8 validation error",
"detail" : format!("{e}"),
"meta": {
"record_position": format!("{pos:?}"),
Expand Down
4 changes: 2 additions & 2 deletions tests/test_sqlp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -831,14 +831,14 @@ fn sqlp_boston311_case_expression() {
WHEN True THEN 'Yes'
WHEN False THEN 'No'
ELSE 'N/A'
END as grafitti_related
END as graffiti_related
from _t_1
where case_status = 'Open'"#,
);

let got: Vec<Vec<String>> = wrk.read_stdout(&mut cmd);
let expected = vec![
svec!["case_enquiry_id", "grafitti_related"],
svec!["case_enquiry_id", "graffiti_related"],
svec!["101004143000", "No"],
svec!["101004155594", "No"],
svec!["101004154423", "No"],
Expand Down

0 comments on commit 7592067

Please sign in to comment.