-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
994 Add support for more functions (upper, lower etc) (#996)
* support upper and lower * remove prototype code * rename `operator` to `outer_function` * remove check for `call_chain` * allow multiple outer_functions to be passed in * update docstring * use querystrings instead * fix some linter issues * fix linter errors * add album table * fix `load_json` on joined tables * move logic for `get_select_string` from `Function` to `QueryString` * use columns in querystring for joins * add `not_in` to `querystring` * add `get_where_string` * set `_alias` in querystring __init__ * refactor `table_alias` * move functions into a new folder * re-export `Upper` and `Lower` * add ltrim and rtrim functions * add more functions * improve error message * add default value for `getattr` when fetching querystring columns * add initial tests * add a test for alias * deprecate `Unquoted` - `QueryString` can be used directly * simplify alias handling for `Function` * don't get alias from child `QueryString` * add `Reverse` function * add `TestNested` * fix sqlite tests * improve tracking of columns within querystrings * increase test timeouts * add missing imports * improve functions nested within `QueryString` * refactor aggregate functions to use new format * make sure where clauses work with functions * fix linter errors * update docs
- Loading branch information
1 parent
da92fbe
commit a85b404
Showing
25 changed files
with
660 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.