Skip to content

Rename query dfr -> query df#6777

Merged
sholderbach merged 1 commit intonushell:mainfrom
dandavison:query-df-name
Oct 16, 2022
Merged

Rename query dfr -> query df#6777
sholderbach merged 1 commit intonushell:mainfrom
dandavison:query-df-name

Conversation

@dandavison
Copy link
Copy Markdown
Contributor

@dandavison dandavison commented Oct 16, 2022

Description

Rename query dfr to query df.

query df is clearly the appropriate name here: df is already widely used in various contexts in nushell to refer to dataframe, including in the command into df, whereas "dfr" is no longer used anywhere else. (I understand that previously dataframe commands were prefixed with dfr but the string dfr doesn't occur anywhere in the codebase after this change). The help text of the command states

Query dataframe using SQL. Note: The dataframe is always named 'df' in your query's from clause.

making it even more clear that the command should use the abbreviation df.

Tests

  • cargo fmt --all -- --check to check standard code formatting (cargo fmt --all applies these changes)
  • cargo clippy --workspace --features=extra -- -D warnings -D clippy::unwrap_used -A clippy::needless_collect to check that you're using the standard code style
  • cargo test --workspace --features=extra to check that all the tests pass

Documentation

I believe that the relevant content is automatically generated and so will be updated automatically in due course: https://www.nushell.sh/book/commands/query_dfr.html#frontmatter-title-for-dataframe

@sholderbach
Copy link
Copy Markdown
Member

Good call! Do we have any public scripts that need to be updated?

@dandavison
Copy link
Copy Markdown
Contributor Author

Doesn't seem to be anything in https://github.com/nushell/nu_scripts. It's only been around for 1 month.

@sholderbach
Copy link
Copy Markdown
Member

https://cs.github.com/?scopeName=All+repos&scope=&q=org%3Anushell+query+df Yeah github code search is not returning any other hits.

@sholderbach sholderbach merged commit ce80988 into nushell:main Oct 16, 2022
sholderbach added a commit to nushell/nushell.github.io that referenced this pull request Oct 16, 2022
sophiajt added a commit to nushell/nushell.github.io that referenced this pull request Oct 19, 2022
* [WIP] Release notes for nushell 0.70

Please add your important new features and breaking changes to the
release notes by commiting to/opening a PR against the
`release-notes-0.70` branch! Thanks for helping out!

* update blog (#615)

* add text about new table flags

took text from zhiburt's pr and put it here

* Mention `features extra` in the release notes

* Include rename to `query df`

Account for nushell/nushell#6777

* Update 2022-10-18-nushell-0_70.md

* Update 2022-10-18-nushell-0_70.md

* Update 2022-10-18-nushell-0_70.md

* Update 2022-10-18-nushell-0_70.md

* Update 2022-10-18-nushell-0_70.md

Co-authored-by: pwygab <88221256+merelymyself@users.noreply.github.com>
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
Co-authored-by: JT <547158+jntrnr@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants