EugeneTorap
fc89718d48
chore: Update pylint to 2.17.4 ( #24700 )
...
Co-authored-by: John Bodley <john.bodley@gmail.com >
2023-07-24 17:13:49 -07:00
Beto Dealmeida
7675e0db10
fix: search_path in RDS ( #24739 )
2023-07-20 12:57:48 -07:00
Michael S. Molina
e5b7f7c9b5
fix: Time shifts with different granularity for ECharts ( #24176 )
2023-06-08 16:03:37 -03:00
John Bodley
a4d5d7c6b9
chore(pre-commit): Add pyupgrade and pycln hooks ( #24197 )
2023-06-01 12:01:10 -07:00
Hugh A. Miles II
ba00dfa584
fix: move dynamic schema out of base Postgres class ( #23868 )
2023-05-01 11:46:06 -05:00
Beto Dealmeida
8d14420d14
feat(snowflake): get_catalog_names ( #23602 )
2023-04-06 12:17:30 -07:00
Beto Dealmeida
e2e0ad5ef5
feat(presto): get_catalog_names ( #23599 )
2023-04-06 09:27:49 -07:00
Beto Dealmeida
8588f81855
feat(DB engine spec): get_catalog_names ( #23447 )
2023-03-22 13:40:14 -07:00
Beto Dealmeida
2c6f581fa6
feat(postgresql): dynamic schema ( #23401 )
2023-03-17 17:53:42 -07:00
Beto Dealmeida
42e8d1b498
chore: improve schema security ( #23385 )
2023-03-17 08:05:50 -07:00
Ville Brofeldt
cd6fc35f60
chore(db_engine_specs): clean up column spec logic and add tests ( #22871 )
2023-01-31 15:54:07 +02:00
Antonio Rivero Martinez
ad758c0802
feat(ssh_tunnel): Rename allow_ssh_tunneling and change the default value to False ( #22723 )
2023-01-17 19:11:41 -08:00
Hugh A. Miles II
ebaad10d6c
feat(ssh-tunnelling): Setup SSH Tunneling Commands for Database Connections ( #21912 )
...
Co-authored-by: Antonio Rivero Martinez <38889534+Antonio-RiveroMartnez@users.noreply.github.com >
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com >
2023-01-03 17:22:42 -05:00
John Bodley
7e54b88a51
chore: Change get_table_names/get_view_names return type ( #22085 )
2022-11-18 12:41:21 -08:00
Michael S. Molina
cb3cd41dcd
fix: Removes psycopg2 as a required dependency ( #20543 )
...
* fix: Removes psycopg2 as a required dependency
* Disables lint warning
2022-06-29 09:22:13 -03:00
Smart-Codi
74c5479926
fix: datatype tracking issue on virtual dataset ( #20088 )
...
* Fix datatype tracking issue on virtual dataset
* fix pytest issue on postgresql
2022-06-01 13:43:11 -06:00
Ville Brofeldt
a619cb4ea9
chore: upgrade black ( #19410 )
2022-03-29 20:03:09 +03:00
Đặng Minh Dũng
5a740901d6
cleanup column_type_mappings ( #17569 )
...
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
2022-01-14 11:07:17 +02:00
Ville Brofeldt
6a7e6490a9
fix(postgres): remove redundant tz factory ( #17713 )
...
* fix(postgres): remove redundant tz factory
* lint
2021-12-10 21:53:48 +02:00
Ville Brofeldt
1af99eabc2
chore: unblock ci on postgres lint ( #17705 )
2021-12-09 16:12:46 +02:00
aniaan
5a1c68177e
fix(elasticsearch): time_zone setting does not work for cast datetime expressions ( #17048 )
...
* fix(elasticsearch): cast does not take effect for time zone settings
* test(elasticsearch): add test
* fix(test): fix typo
* docs(elasticsearch): add annotation
* docs(elasticsearch): add time_zone desc
* docs(elasticsearch): fix typo
* refactor(db_engine): change convert_dttm signature
* fix(test): fix test
* fix(es): add try catch
* fix(test): fix caplog
* fix(test): fix typo
2021-11-25 11:58:44 +02:00
John Bodley
b9ff85d9ea
chore(engine): Translate fractional time grains—requires @superset-ui bump ( #17078 )
...
* chore(engine): Translate fractional time grains
* Bump @superset-ui
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2021-10-12 21:40:48 -07: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
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
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
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
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
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
Hugh A. Miles II
3a81e6aee8
change name to Basic instead of Base ( #14625 )
2021-05-13 15:05:37 -04: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
7466595563
fix: fixing mysql error message ( #14416 )
...
* fixing mysql error message
* Update tests/db_engine_specs/mysql_tests.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update tests/db_engine_specs/mysql_tests.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update tests/db_engine_specs/mysql_tests.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update superset/db_engine_specs/mysql.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* fixed broken test
* changed error type
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2021-04-30 15:15:37 -07: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
c7112d1c48
feat: error messages for Presto connections ( #14172 )
...
* chore: rename connection errors
* feat: error messages for Presto connections
* Add unit tests
* Update docs/src/pages/docs/Miscellaneous/issue_codes.mdx
Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com >
Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com >
2021-04-16 15:49:47 -04:00
Beto Dealmeida
21c6efea67
chore: rename connection errors ( #14169 )
2021-04-15 10:57:02 -07:00
AAfghahi
eadff5f41e
feat: invalid DB name error messages (MySQL/Postgres/Redshift) ( #14146 )
...
* initial DB custom errors for mysql
* added redshift and postgres
2021-04-15 08:02: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
786dadc836
feat: invalid password error message (Postgres) ( #14038 )
2021-04-12 14:03:21 -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
Ville Brofeldt
13f7e0d755
feat(native-filters): add temporal support to select filter ( #13622 )
2021-03-18 16:15:43 +02: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
40a334aacf
feat(db-engine-specs): add support for Postgres root cert ( #11720 )
...
* feat(db-engine-specs): add support for Postgres root cert
* remove logging of json decode exception message
* fix error message
* fix error message
2021-01-13 13:39:28 +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
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
af1e8e8839
fix: enable several pylint rules partially in db_engines_specs module ( #11000 )
...
* Enabled mssql
* Enabling pylint rules in `mysql.py` from `db_engine_specs`:
- added variable to shorten line and enable `line-too-long`
- `import-error` seems not prompting anymore
- specified exception instead broad-except
* Refactored too long line in `oracle.py` from `db_engine_specs`. Enabled too-long-line pylint rule.
* Changed fstring into string `pinot.py` to reenable `f-string-without-interpolation` rule.
* Enabled `unused-import` rule and changed line to adjust to correct number of characters in `db_engine_specs/postgres.py`.
* Enabled unused-import pylint check in `db_engine_specs/presto.py`
* Enabled unused-import pylint check in `db_engine_specs/snowflake.py`
* Enabled unused-import pylint check in `db_engine_specs/sqlite.py`
2020-09-23 10:47:56 -07: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
Erik Ritter
2055ecc1ba
feat: refactor error components and add database issue code ( #10473 )
...
* feat: refactor error components and add database issue code
* Apply suggestions from code review
Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com >
Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com >
2020-08-06 13:22:24 -07:00
Ville Brofeldt
b205ce32b0
feat: Add new timegrains and convert_dttm to Druid engine spec ( #10160 )
...
* feat: Add new timegrains and convert_dttm to Druid engine spec
* Add TemporalType enum and fix test case
* Remove DATETIME for athena (original spec)
2020-06-25 12:18:37 +03:00
John Bodley
91517a56a3
style(mypy): Spit-and-polish pass ( #10001 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2020-06-07 08:53:46 -07:00