John Bodley
955a4fe792
[fix] Automatically add relevant Jinja methods to cache key if present ( #9572 )
...
* [fix] Adding URL params to cache key if present
* [cache] Wrapping Jinja methods
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2020-04-24 08:18:22 -07:00
John Bodley
8ae92b50ad
[fix] Fixing regression from #9161 ( #9641 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2020-04-23 22:51:33 -07:00
Ville Brofeldt
85778f5bec
fix: broken IS NULL and IS NOT NULL operator ( #9613 )
...
* fix: broken is null and is not null operator
* add unit tests
* Rename filter operator enum
2020-04-22 19:11:45 +03:00
Ville Brofeldt
982c234a50
fix: remove character set and collate column info by default ( #9316 )
...
* fix: remove character set and collate column info by default
* lint
* remove collation and charset info before compile
2020-03-17 21:34:39 +02:00
Ville Brofeldt
7a91498cf1
fix: share column type matching between model and result set ( #9161 )
...
* Share column type matching between model and result set
* Address comments
2020-03-04 16:33:22 +02:00
John Bodley
8a138fbd03
[tox] Allowing running of specific tests ( #9097 )
2020-02-06 16:45:37 -08:00
Ville Brofeldt
5b690f9411
chore: refactor, add typing and fix uncovered errors ( #8900 )
...
* Add type annotations and fix inconsistencies
* Address review comments
* Remove incorrect typing of jsonable obj
2019-12-31 09:26:23 +02:00
Marcus
4cfd6b3ce1
[tests] Fix, removing deprecated function for future Python release compatibility. ( #8353 )
...
* removing deprecated function for future Python release compatibility.
* also removed assertNotEquals per @dpgaspar
2019-10-21 15:49:12 +01:00
John Bodley
9fc37ea9f1
[ci] Deprecate flake8 ( #8409 )
...
* [ci] Deprecate flake8
* Addressing @villebro's comments
2019-10-18 14:44:27 -07:00
serenajiang
876d329474
[fix] make names non-nullable ( #8371 )
2019-10-15 16:51:04 -07:00
serenajiang
7e7ea3d9a0
Revert "[fix] make datasource names non-nullable ( #8332 )" ( #8363 )
...
This reverts commit 65a05ca47e
.
2019-10-09 11:38:57 -07:00
serenajiang
65a05ca47e
[fix] make datasource names non-nullable ( #8332 )
2019-10-04 09:13:25 -07:00
Maxime Beauchemin
68c4c3a0b9
Prevent 'main' database connection creation ( #8038 )
...
* prevent 'main' database connection creation
* fix tests
* removing get_main_database
* Kill get_main_database
* Point to examples tables
2019-09-08 10:18:09 -07:00
Ville Brofeldt
1982b74af2
Add check for calls to cache_key_wrapper ( #8128 )
...
* Add check for calls to cache_key_wrapper to avoid unavoidable compilation of query
* Add fetch_values_predicate to check
* Only check relevant attributes
* Address nit
2019-08-27 13:36:05 -07:00
Ville Brofeldt
07a76f83b1
[Bugfix] Remove prequery properties from query_obj ( #7896 )
...
* Create query_obj for every filter
* Deprecate is_prequery and prequeries from query_obj
* Fix tests
* Fix typos and remove redundant ; from sql
* Add typing to namedtuples and move all query str logic to one place
* Fix unit test
2019-07-23 22:13:58 +03:00
Arpit
ee3430cce5
[Bugfix] Response header and response mismatch on explore result from sqllab ( #7907 )
...
* fix(sql-lab explore): fixed response data and header type to be aligned
* fix(sql-lab explore): fixed test error caused by incorrect test at master
* fix(sql-lab explore): reformatted
* fix(sql-lab explore): removed unused import
2019-07-22 08:47:34 +03:00
Ville Brofeldt
4568b2a532
Add cache_key_wrapper to Jinja template processor ( #7816 )
2019-07-20 09:12:35 -07:00
John Bodley
5c58fd1802
[format] Using Black ( #7769 )
2019-06-25 13:34:48 -07:00
Ville Brofeldt
95291facff
Break up db_engine_specs ( #7676 )
...
* Refactor db_engine_specs into package
* Rename bigquery class and add epoch funcs
* Fix flake8 errors
* Dynamically load all engine specs
* Fix linting errors and unit tests
* Implement Snowflake epoch time funcs
* Implement Teradata epoch time func
* Fix presto datasource query and remove unused import
* Fix broken datasource query
* Add mypy ignore for false positive
* Add missing license files
* Make create_time_grains_tuple public
* Fix flake8 quote
* Fix incorrect licence header
2019-06-08 11:27:13 -07:00
Maxime Beauchemin
ed79134e7f
auto-set 'Is Temporal' to true where column_name == '__time' ( #6857 )
...
* auto-set 'Is Temporal' to true where column_name == '__time'
* Adress comments
* lint
* clarifying name and comments
2019-03-04 20:51:11 -08:00