Amit Miran
62a8f2e193
chore(python-testing): move memoized tests to unit tests ( #15507 )
...
* chore: move memoized test into a separated file
create integration test workflow
* chore: create unit test workflow to run purely pytest
* fix: bad reference
* fix: remove pip requirements bc there aren't any yet
* temp: install unit dependencies directly
* fix: --rootdir=
* fix: try to run only unit test
* chore: decouple memoized as separated module
* fix: bring back dependencies bc superset top-level module is coupled to flask and others so no reason no to do it
* fix: reference
* fix: pre-commit
* fix: pylint
2021-07-12 10:00:18 +03:00
Hugh A. Miles II
d4480f5c9a
feat: Database Connection UI ( #14881 )
2021-07-01 14:40:27 -07:00
John Bodley
accee507c0
chore: Add Druid SQL timegrains for parity with Druid NoSQL ( #15320 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-06-25 07:21:51 -07:00
John Bodley
ea382e404d
fix: Capitalize time grainularity weekdays ( #15319 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-06-23 08:30:30 -07:00
Mikhail Kumachev
11eef251b2
feat: Add "is_select_query" method to base engine spec to make it possible to override it ( #15013 )
2021-06-07 17:32:33 -07:00
Elizabeth Thompson
8cc97e4790
feat: validation db modal ( #14832 )
...
* split db modal file
* hook up available databases
* use new validation component
2021-06-01 18:18:17 -04:00
Hugh A. Miles II
ae8378a50e
fix: Big Query Edit Form ( #14850 )
...
* fix big quert edit form
* fix test
* fix api test
* fix test
2021-05-26 16:13:26 -04:00
Beto Dealmeida
8b1a117d24
feat: return parameters only for DB with default driver ( #14803 )
...
* WIP
* Fix sorting of DBs
2021-05-25 14:46:54 -07:00
Hugh A. Miles II
6d33432b58
feat: Create BigQuery Parameters for DatabaseModal ( #14721 )
2021-05-23 12:45:48 -04:00
Hugh A. Miles II
ec0a7922fe
feat: Add Parameters fields to GET Database ( #14653 )
2021-05-19 10:25:20 -04:00
Beto Dealmeida
971f5883f0
feat: add SSL to new DB parameters ( #14673 )
...
* feat: add SSL to new DB parameters
* Fix test
* Raise if cls.encryption_parameters is empty
2021-05-17 21:27:43 -07:00
Ville Brofeldt
97c9e37c24
perf: memoize db_engine_spec in database ( #14638 )
...
* perf: memoize db_engine_spec in sqla table classes
* remove extended cypress timeouts
2021-05-14 12:49:35 +03:00
Hugh A. Miles II
3a81e6aee8
change name to Basic instead of Base ( #14625 )
2021-05-13 15:05:37 -04:00
Ville Brofeldt
3f6bd1e4a4
feat: add generic type to column payload ( #14547 )
...
* feat: add generic type to column payload
* feat: add generic type to column payload
* xit flaky test
2021-05-13 09:36:09 +03:00
Beto Dealmeida
31f406a526
feat: API endpoint to validate databases using separate parameters ( #14420 )
...
* feat: new endpoint for validating database parameters
* Rebase
* Remove broken tests
2021-05-12 18:32:10 -07:00
AAfghahi
e507508b48
feat: Logic added to limiting factor column in Query model ( #13521 )
...
* Sqllab limit
* Add migration script
* Set default values
* initial push
* revisions
* Update superset/views/core.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* moving migration to separate PR
* with migration
* revisions
* Fix apply_limit_to_sql
* all but tests
* added unit tests
* revisions
* Update superset/sql_lab.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update superset/sql_parse.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* fixed black issue
* Update superset/views/core.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* updated logic
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2021-04-30 15:15:18 -07:00
Sam Faber-Manning
11260b3117
chore: add stack trace to all calls of logger.error ( #14382 )
2021-04-30 09:22:05 -07:00
John Bodley
d8bb2d3e62
refactor(db_engine_specs): Removing top-level import of app ( #14366 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-04-28 15:47:32 +12:00
Ben Reinhart
2a1235c0c2
fix: Cleanup serialization and hashing code ( #14317 )
2021-04-26 14:04:40 -07:00
Rob DiCiuccio
6875a1a9e2
Make g.user attribute access safe for public users ( #14287 )
2021-04-26 08:50:50 -07:00
John Bodley
b0f8f6b6ad
fix(hive): Use parquet rather than textfile when uploading CSV files to Hive ( #14240 )
...
* fix(hive): Use parquet rather than textfile when uploading CSV files
* [csv/excel]: Use stream rather than temporary file
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-04-24 18:17:30 +12:00
Beto Dealmeida
e7ad03d44f
feat: add endpoint to fetch available DBs ( #14208 )
...
* feat: add endpoint to fetch available DBs
* Fix lint
2021-04-23 10:51:47 -07:00
Beto Dealmeida
21f973f0bd
feat: error messages when connecting to MSSQL ( #14093 )
...
* feat: error messages when connecting to MSSQL
* Address comments
2021-04-14 10:57:58 -07:00
Beto Dealmeida
c60a93db9c
feat: add extract_errors to Postgres ( #13997 )
...
* feat: add extract_errors to Postgres
* Add unit tests
* Fix lint
* Fix unit tests
2021-04-08 13:24:54 -07:00
Jesse Yang
4789074309
fix(sqla-query): order by aggregations in Presto and Hive ( #13739 )
2021-04-01 18:10:17 -07:00
Elizabeth Thompson
086238fb10
feat: sort time grain configs ( #13720 )
...
* sort time grain configs
* Fix lint
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2021-03-25 18:00:52 -07:00
Ville Brofeldt
13f7e0d755
feat(native-filters): add temporal support to select filter ( #13622 )
2021-03-18 16:15:43 +02:00
Nikola Gigić
aa0cd64940
fix(explore): Add int and bool regex pattern ( #13621 )
...
* fix postgres regex string for bool and int
* move regex from postgres to bae
* move regex from postgres to base
2021-03-17 11:59:29 +02:00
Jesse Yang
bd1d6acb0c
fix(query): order by adhoc metrics should trigger group by ( #13434 )
...
* fix(query): properly select adhoc metrics in orderby
* Throw error when sql is empty
* Allow `metrics` to be None
* Always use alias in orderby for metrics
* Bump table chart version and migrate histogram to typescript
* Fix Histogram without groupby
* Fix Presto birth names test
* Raw records mode should not aggregate
2021-03-16 21:00:03 -07:00
Nikola Gigić
609c3594ef
feat(explore): Postgres datatype conversion ( #13294 )
...
* test
* unnecessary import
* fix lint
* changes
* fix lint
* changes
* changes
* changes
* changes
* answering comments & changes
* answering comments
* answering comments
* changes
* changes
* changes
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
* fix tests
2021-03-12 10:36:43 +02:00
Ville Brofeldt
375797f649
feat(native-filters): add timegrain and column filter ( #13484 )
...
* feat(native-filters): add timegrain and column filter
* add fetch values predicate
* bump deps
* lint
* fix test
* add python test for legacy merge
* fix default value and isInitialized to not check strict equality
* Address comments
* add FilterValue type
* address review comments
2021-03-09 17:27:46 +02:00
Beto Dealmeida
528ea9cbb0
fix: SHOW is not DML ( #13464 )
...
* fix: SHOW is not DML
* Fix test
2021-03-04 17:17:25 -08:00
Beto Dealmeida
892eef1af6
feat: add Firebird DB engine spec ( #13353 )
...
* feat: add Firebird DB engine spec
* Add dep to setup.py
* Fix lint
* Add tests
* Remove uneeded code
* Fix old bug
2021-02-26 12:07:27 -08:00
rijojoseph07
efeb5a93e6
feat(presto): add support for user impersonation ( #13214 )
...
* changes to support presto impersionation with ldap
* renamed method to match 30 char limit
* import spell check
* added presto impersonation test
* refactored impersionation code to generalize for extension
* moving config_args mutation to the update_connect_args_for_impersonation
* moving config_args mutation to the update_connect_args_for_impersonation
* nits
* refactored update_impersonation_config method name to match lint rule
* reduced comment line length
* black reformats
Co-authored-by: rijojoseph01 <rijo.joseph@myntra.com >
2021-02-22 15:01:33 +02:00
Daniel Vaz Gaspar
9568985b7b
fix: engines that don't support comments ( #13153 )
...
* fix: engines that don't support comments
* fix: engines that don't support comments
* add quick inexpensive test
* add test
2021-02-17 18:01:34 +00:00
Daniel Vaz Gaspar
6c018c0a28
refactor: dbapi exception mapping for dbapi's ( #12869 )
...
* refactor: dbapi exception mapping for dbapi's
* fix test
* fix lint
* fix grammar on comment
2021-02-02 15:07:46 +00:00
Beto Dealmeida
dcef5e1381
fix: remove explicit cursor closing for BQ ( #12836 )
2021-01-29 14:32:47 -08:00
Jesse Yang
e3db935c62
refactor: migrate table chart to new API ( #10270 )
...
* refactor: migrate table chart to new API
* chore: bump superset-ui to 0.17.0
* Fix Cypress tests
* Apply soft-conversion to numeric metrics
Fix time column formatting test
* Add translation to chart does not exist error
* Bump to 0.17.1
2021-01-29 13:12:09 +02:00
Jesse Yang
c14ed80f28
refactor: rename DbColumnType to GenericDataType ( #12617 )
2021-01-20 10:07:42 -08:00
Ville Brofeldt
7e99d768af
feat(bigquery): implement custom minute time grains ( #12581 )
...
* feat(bigquery): implement custom minute time grains
* address review comment
2021-01-19 14:32:33 +02:00
Beto Dealmeida
877b153331
feat: estimate query cost in Postgres ( #12130 )
...
* feat: estimate query cost in Postgres
* Add example in config
* Fix lint
2020-12-18 16:08:53 -08:00
Beto Dealmeida
54bf70733f
feat: run BQ queries as single statement ( #11904 )
...
* feat: run BQ queries as single statement
* Update deps
* Fix lint
* Update superset/sql_lab.py
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
2020-12-03 13:20:23 -08:00
Bogdan
0396c705d4
chore: Support SET & SHOW commands as read only SQL commands ( #11868 )
...
* Support SET & SHOW commands as read only SQL commands
* Move is_readonly definition into the engine spec
* Rename & use super()
Co-authored-by: bogdan kyryliuk <bogdankyryliuk@dropbox.com >
2020-12-03 10:44:11 -08:00
Maxime Beauchemin
796a2a6924
fix: error around latest partition in BigQuery ( #11274 )
...
* fix: error around latest partition in BigQuery
* lint
* Going with a backend-first approach
* fix test
* add an extra test
2020-10-20 21:34:46 -07:00
Yongjie Zhao
22d8171dd6
chore(engine): adapt postgres backend connection URI ( #11233 )
...
* chore(engine): adapt postgres backend connection URI
* fix tests
* Update superset/db_engine_specs/__init__.py
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
2020-10-14 18:57:41 +03:00
Kasia Kucharczyk
a6f258747b
fix: enable pylint rules in db_engine_specs module ( #10998 )
...
* Athena.py: cretaed variable for too long line, removed disabled pylint rule.
* Enabled `line-too-long` in `drill.py`. Added variable for too long string.
* Reformatted hana.py:
- changed return statement into two lines to keep line lenght limit
* Enabling pylint rule in hive.py:
- `no-name-in-module` for pyhive in several places
- `line-too-long` and adding new lines
- `unused-import` is not invalid anymore
* Enabled `line-too-long` in `kylin.py`. Added variable for too long string.
* Enabled `unused_import` in `base.py` from db_engine_specs module.
* Enabled `unused_import` in `bigquery.py` from db_engine_specs module.
* Enabled `unused_import` in `druid.py` from db_engine_specs module.
* fix: athena datetime string converting
2020-09-22 13:44:45 -07:00
Ville Brofeldt
bd140e018a
fix(presto): default unknown types to string type ( #10753 )
...
* fix(presto): default unknown types to string type
* lint
2020-09-22 13:16:54 +03:00
Yongjie Zhao
38edb69d95
Feat: Adding table comment and columns comment for SQLLab ( #10844 )
...
* Adding table comment and columns comment for backend
* fix mypy
* Fix CI
* adding wider catch
* use logger
* fix lint
2020-09-14 21:11:48 -07:00
Ville Brofeldt
4392c4608f
chore: bump pyarrow ( #10733 )
...
* chore: bump pandas an pyarrow
* remove unsupported kwargs
* fix types
* move pandas back to 1.0 branch due to possible MultiIndex regression
2020-08-31 19:55:53 +03:00
Ville Brofeldt
dd0bc472e3
refactor(database): use SupersetResultSet on SqlaTable.get_df() ( #10707 )
...
* refactor(database): use SupersetResultSet on SqlaTable.get_df()
* lint
* change cypress test
2020-08-28 21:12:03 +03:00