superset/tests
Maxime Beauchemin 777d876a52
Improve database type inference (#4724)
* Improve database type inference

Python's DBAPI isn't super clear and homogeneous on the
cursor.description specification, and this PR attempts to improve
inferring the datatypes returned in the cursor.

This work started around Presto's TIMESTAMP type being mishandled as
string as the database driver (pyhive) returns it as a string. The work
here fixes this bug and does a better job at inferring MySQL and Presto types.
It also creates a new method in db_engine_specs allowing for other
databases engines to implement and become more precise on type-inference
as needed.

* Fixing tests

* Adressing comments

* Using infer_objects

* Removing faulty line

* Addressing PrestoSpec redundant method comment

* Fix rebase issue

* Fix tests
2018-06-27 21:35:12 -07:00
..
fixtures [DeckGL] Added fixtures and Deck test (#4798) 2018-04-12 17:20:39 -07:00
__init__.py Forgot to add some files for unit tests 2015-09-26 15:56:08 -07:00
access_tests.py [security] Refactor security code into SupersetSecurityManager (#4565) 2018-03-27 16:46:02 -07:00
base_tests.py Rename "slice" to "chart" and update translations (#5008) 2018-05-21 17:49:02 -07:00
cache_tests.py Cache the query string (#4633) 2018-03-21 13:13:36 -07:00
celery_tests.py Improve database type inference (#4724) 2018-06-27 21:35:12 -07:00
core_tests.py Improve database type inference (#4724) 2018-06-27 21:35:12 -07:00
dashboard_tests.py [dashobard fix]: fix validation check for default_filters (#5297) 2018-06-27 11:00:50 -07:00
dataframe_test.py Improve database type inference (#4724) 2018-06-27 21:35:12 -07:00
db_engine_specs_test.py Improve database type inference (#4724) 2018-06-27 21:35:12 -07:00
dict_import_export_tests.py [flake8] Adding flake8-coding (#4477) 2018-02-25 15:06:11 -08:00
druid_func_tests.py Add extraction function support for Druid queries (#4740) 2018-05-08 22:00:06 -07:00
druid_tests.py fetch datasources from broker endpoint when refresh new datasources (#5183) 2018-06-13 08:10:58 -07:00
email_tests.py [flake8] Adding flake8-coding (#4477) 2018-02-25 15:06:11 -08:00
form_tests.py forms: make csv import parse dates accepts a list of columns (#4639) 2018-03-23 14:16:02 -07:00
import_export_tests.py [flake8] Adding flake8-coding (#4477) 2018-02-25 15:06:11 -08:00
model_tests.py [get_df] Adding support for multi-statement SQL (#5086) 2018-05-29 14:20:17 -07:00
security_tests.py [logs] Dropping dt column (#4587) 2018-04-10 18:34:32 -07:00
sql_parse_tests.py [flake8] Resolving Q??? errors (#3847) 2017-11-13 21:06:51 -08:00
sqllab_tests.py Improve database type inference (#4724) 2018-06-27 21:35:12 -07:00
superset_test_config.py Cache the query string (#4633) 2018-03-21 13:13:36 -07:00
utils.py [DeckGL] Added fixtures and Deck test (#4798) 2018-04-12 17:20:39 -07:00
utils_tests.py Added new exception class and start of better exception/error handling (#4514) 2018-03-11 22:07:51 -07:00
viz_tests.py [get_df] Fix datetime conversion (#5274) 2018-06-27 09:09:42 -07:00