Ville Brofeldt
9de2196b7f
fix: TemporalWrapperType string representation ( #16614 )
...
* fix: TemporalWrapperType string representation
* fix tests
2021-09-07 13:50:24 +03:00
Beto Dealmeida
359383b578
feat: Add Aurora Data API engine spec ( #16535 )
...
* feat: Add Aurora Data API engine spec
* Fix lint
2021-09-04 08:40:14 -07:00
Eugene Klimov
1badcaed45
feat: add function list to auto-complete to Clickhouse datasource ( #16234 )
...
* add function list to auto-complete to Clickhouse datasource, fix https://github.com/apache/superset/issues/15477
Signed-off-by: Slach <bloodjazman@gmail.com >
* add function list to auto-complete to Clickhouse datasource, fix https://github.com/apache/superset/issues/15477
fix review comments https://github.com/apache/superset/pull/16234#discussion_r688362980
Signed-off-by: Slach <bloodjazman@gmail.com >
* fix CI/CD https://github.com/apache/superset/pull/16234/checks?check_run_id=3396235776 and https://github.com/apache/superset/pull/16234/checks?check_run_id=3396235707
Signed-off-by: Slach <bloodjazman@gmail.com >
* fix black formatting
Signed-off-by: Slach <bloodjazman@gmail.com >
* fix isort pre-commit hook
Signed-off-by: Slach <bloodjazman@gmail.com >
2021-08-26 18:55:43 +08:00
Beto Dealmeida
5e472980a6
feat: add Shillelagh DB engine spec ( #16416 )
2021-08-24 17:07:29 -07:00
John Bodley
7e4c940314
chore(pylint): Enable useless-suppression check ( #16388 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-08-24 03:58:41 +12:00
Srini Kadamati
5f060a2227
feat: Adding Rockset db engine spec ( #16167 )
...
* rockset prototype
* rockset
* t
* removed print / logging
* set a more specific version range for Rockset library
2021-08-18 13:04:59 +03:00
Beto Dealmeida
8a36356f49
fix: rename Databricks ( #16297 )
2021-08-17 11:16:51 -07:00
Ville Brofeldt
5e75baf0cc
fix(sqlite): week grain refer to day of week ( #16293 )
2021-08-17 15:45:08 +03:00
John Bodley
be7065faf8
chore(pylint): Reenable raise-missing-from check ( #16266 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-08-17 10:26:10 +12:00
John Bodley
0df15bf207
chore(pylint): Reenable import-outside-toplevel check ( #16263 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-08-17 05:20:13 +12:00
Elizabeth Thompson
67c4c0116e
fix: remove encryption from db params ( #16214 )
...
* remove encryption from db params
* Update superset/db_engine_specs/base.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2021-08-12 12:03:14 -07:00
Hugh A. Miles II
fd80ae34a3
fix: Make sheet_name into a ValidationInputError ( #16056 )
...
* setup validates for name
* add error type
* fix linting
* fix test
* remove errors
* fix number
* fix test
2021-08-10 13:07:31 -04:00
Ville Brofeldt
63ace7b288
feat(cross-filters): add support for temporal filters ( #16139 )
...
* feat(cross-filters): add support for temporal filters
* fix test
* make filter optional
* remove mocks
* fix more tests
* remove unnecessary optionality
* fix even more tests
* bump superset-ui
* add isExtra to schema
* address comments
* fix presto test
2021-08-10 17:18:46 +01:00
Hugh A. Miles II
bfe7eb9a7b
feat(dbc ui): Adding Google Sheets Dynamic Form ( #15801 )
...
* feat: Make Google Sheets Dyanmic (#15576 )
* first draft
* second draft
* added tests
* first draft
* added table_catalog
* remove console.log
* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* revisions
* save this for now
* working form
* save disable on public sheets
* refactor somethings
* saving this for now
* working edit
* add back query to schema
* working add
* fix styling
* fixing x
* fix linting
* prettier
* fix some type issues
* more lint fixes
* remove unused dependency
* fix linint
* fix validation
* pylint bypass
* pylint bypass
* fix this
* fix mypy
* yerp
* fix test
* fix test
* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/DatabaseConnectionForm.tsx
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* wrap add sheets
* fix linting issues
* fix unit test
* ignore typing
* fix editting and paste issues
* remove query
* fix this
* fix test
* add test back
* fix error messaging
* update url messaging on error
* change error type
* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* add errors for sheets with no name
* fix
* fix messaging for gsheets
* stop pylint
* update line
Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com >
Co-authored-by: Arash <arash.afghahi@gmail.com >
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2021-07-28 15:00:27 -04:00
John Bodley
6d3e19d857
fix(15403): Re-enable canceling query for Hive and Presto ( #15878 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-07-26 08:04:56 -07:00
John Bodley
ab4e3b9bf9
chore: Enforce Mypy for non-tests ( #15757 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-07-22 06:46:43 +12:00
Peter Kosztolanyi
02032ee8a4
feat: cancel db query on stop ( #15403 )
...
* feat: cancel db query on stop
* fix pylint
* Add unit tests
* Do not bind multiple times
* Stop only running queries
* Postgres to cancel only the required query
* Remove extra log
* Add docstring
* Better types, docstring and naming
* Use python3 format strings
* Update superset/sql_lab.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Add cancel_query_on_windows_unload option to database
* Return cancel_query as bool
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2021-07-13 12:09:22 -04:00
Hugh A. Miles II
f39582c900
fix: change sslmode to require for Postgres ( #15642 )
...
* change sslmode to require
* fix test
2021-07-12 15:38:07 -07:00
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
Beto Dealmeida
4f5f9287fc
feat: validate_parameters for GSheets ( #15578 )
...
* feat: validate_parameters for GSheets
* Move import inside fixture
* Update deps
* Rename parameter
2021-07-08 08:26:39 -07:00
Beto Dealmeida
8f92618e46
fix: show all dbs in available endpoint ( #15534 )
2021-07-02 12:58:36 -07:00
Beto Dealmeida
cbc4aa8dc1
feat: extra table metadata for Google Sheets ( #14775 )
...
* feat: GSheets extra table metadata
* Bump version
2021-07-01 19:27:26 -07:00
Hugh A. Miles II
d4480f5c9a
feat: Database Connection UI ( #14881 )
2021-07-01 14:40:27 -07:00
Beto Dealmeida
55d0371b92
fix: GSheets supports JOINs ( #15487 )
2021-07-01 07:28:28 -07:00
Abhishek Jog
7ad8fd5c98
feat(add Netezza database): Add IBM Netezza support ( #15450 )
...
* Add netezza to superset
* update netezza logo
* change in logo filename
* fixing linter error
* removing stray code
2021-06-30 08:27:54 -04:00
rijojoseph07
a2d69ea252
feat(trino): add support for query cost estimate #15166 ( #15177 )
...
* added estimate_statement_cost to trino
* file formatted
Co-authored-by: rijojoseph01 <rijo.joseph@myntra.com >
2021-06-30 13:05:22 +03:00
AAfghahi
743d9cc928
feat: Better Errors in SQL Lab ( #15432 )
...
* snowflake errors
* added big query
* added to setup error messages, first test
* all big query testing added
* added snowflake test
* added syntax error
* added syntax errors to most used databases
2021-06-29 16:48: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
Daniel Wood
a1027152ba
add ascend engine spec ( #14682 )
2021-06-18 10:35:55 -07:00
Hugh A. Miles II
965dacdb33
fix: Fix dremio dialect not having a driver field ( #15198 )
...
* Update __init__.py
* Update superset/db_engine_specs/__init__.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2021-06-16 20:02:02 -04:00
Beto Dealmeida
d625f5f111
feat: show rich error messages on past failed queries ( #15158 )
...
* feat: store SIP-40 error payload with queries
* Set errors in query on load
2021-06-16 12:58:14 -07:00
Beto Dealmeida
ffdbcbd16e
fix: ignore errors in GetLog ( #15181 )
2021-06-15 16:33:59 -07:00
Beto Dealmeida
90d9097841
fix: validate DB-specific parameters ( #15155 )
...
* fix: validate DB-specific parameters
* Fix lint
* Update test
* Fix lint/test
* Fix lint
* Update superset/databases/api.py
2021-06-14 18:44:18 -07:00
Beto Dealmeida
cc2b4fe3f4
fix: show custom errors in SQL Lab ( #14959 )
...
* fix: show custom errors in SQL Lab
* Fix lint
* Fix test
* Update superset/views/base.py
Co-authored-by: ʈᵃᵢ <tai@apache.org >
* Fix lint
* Debug failing test
* Remove print()
* Debug flaky tests
* Fix test
Co-authored-by: ʈᵃᵢ <tai@apache.org >
2021-06-10 15:20:31 -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
rijojoseph07
a85f5c1344
feat(trino): add support for user impersonation ( #14843 )
...
* trino impersonation feature
* Extra options label update
* Update superset/db_engine_specs/trino.py
Co-authored-by: Đặng Minh Dũng <dungdm93@live.com >
Co-authored-by: rijojoseph01 <rijo.joseph@myntra.com >
Co-authored-by: Đặng Minh Dũng <dungdm93@live.com >
2021-05-29 09:54:18 +03:00
Hugh A. Miles II
8f81fc0ad7
fix: Redshift parameters not rendering ( #14888 )
...
* Update redshift.py
* Update api_tests.py
* fixed test
* add file back
2021-05-28 12:57:15 -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
c72894725e
fix: Fix Big Query API for POST w/ no parameters ( #14822 )
...
* Update schemas.py
* Update bigquery.py
* Fix tests
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2021-05-25 17:13:17 -04:00
AAfghahi
904b60e420
chore: added BasicParametersMixin to Redshift ( #14752 )
...
* redshift basic mixin and tests
* rebased
* forgot prefix
2021-05-24 17:32:53 -04:00
Hugh A. Miles II
6d33432b58
feat: Create BigQuery Parameters for DatabaseModal ( #14721 )
2021-05-23 12:45:48 -04:00
Beto Dealmeida
9e13476714
feat: enable user impersonation in GSheets ( #14767 )
2021-05-22 13:46:36 -07:00
AAfghahi
67e373000e
feat: Expanded Parameters for Mysql ( #14680 )
...
* added mysql form
* revisions
* Update superset/db_engine_specs/mysql.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* added ssl and mysql testing
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2021-05-19 08:47:33 -07: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