John Bodley
0496779434
chore: Update QUERY_LOGGER and SQL_QUERY_MUTATOR signatures ( #24029 )
2023-05-19 06:42:19 -07:00
John Bodley
d583ca9ef5
chore: Embrace the walrus operator ( #24127 )
2023-05-19 00:37:13 -07:00
Hugh A. Miles II
de96372ba7
chore: add log for ssh tunnel information ( #24058 )
2023-05-15 10:43:04 -07:00
Daniel Vaz Gaspar
f80e738196
fix: get or create db with an existing invalid URL ( #23737 )
2023-04-20 09:50:57 +01:00
John Bodley
b35b5a6e05
chore(db_engine_specs): Refactor get_index ( #23656 )
2023-04-13 09:23:16 +12: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
Daniel Vaz Gaspar
b479e93b49
fix: add disallowed query params for engines specs ( #23217 )
...
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
2023-02-28 12:00:22 +00:00
Daniel Vaz Gaspar
79274eb5bc
fix: memoized decorator memory leak ( #23139 )
2023-02-27 15:59:11 +00:00
Beto Dealmeida
6f0fed77cf
feat: export/import allow_dml flag ( #22806 )
2023-01-24 19:16:46 -08:00
solanksh
cf00970cde
feat(charts): allow query mutator to update queries after splitting original sql ( #21645 )
...
Co-authored-by: Akash <Akash.Nallani@bakerhughes.com >
Co-authored-by: anallani <98122184+anallani@users.noreply.github.com >
Co-authored-by: Robert Bean <robert.bean@bakerhughes.com >
Co-authored-by: Akash <anallani@umich.edu >
Co-authored-by: AkashN7 <70606604+AkashN7@users.noreply.github.com >
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com >
2023-01-12 14:04:03 +02:00
Hugh A. Miles II
d18c7d6128
fix(ssh-tunnel): fix dataset creation flow through modal for DB with tunnel ( #22581 )
2023-01-06 13:52:05 -05: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
Hugh A. Miles II
9c0d6c51f1
chore(ssh-tunnel): Refactor establishing raw connection with contextmanger ( #22366 )
2022-12-29 14:20:45 -05:00
Alan Ning
d41cb66737
fix(snowflake): Allow encrypted_extra field to be imported ( #22357 )
...
Co-authored-by: Alan Ning <aning@manifold.ai >
2022-12-08 14:27:30 -05:00
John Bodley
f40e6d1054
fix: SQL Lab QuerySource via referrer ( #22172 )
2022-11-21 07:37:10 -08:00
John Bodley
7e54b88a51
chore: Change get_table_names/get_view_names return type ( #22085 )
2022-11-18 12:41:21 -08:00
Hugh A. Miles II
e23efefc46
feat: refactor all get_sqla_engine to use contextmanager in codebase ( #21943 )
2022-11-15 13:45:14 -05:00
Beto Dealmeida
4496748cd9
chore: update Druid ( #22067 )
2022-11-08 15:03:58 -08:00
John Bodley
6bbf4f8718
fix: JSON serializers ( #22029 )
2022-11-03 17:29:10 -07:00
Ville Brofeldt
dc7399540b
chore: bubble up more db error messages ( #21982 )
2022-11-01 07:54:27 +02:00
Hugh A. Miles II
7600da8041
feat: create function for get_sqla_engine with context ( #21790 )
2022-10-25 14:12:48 -04:00
Elizabeth Thompson
e98943e580
refactor: pass all properties to validate_parameters ( #21487 )
2022-10-03 17:48:54 -07:00
Elizabeth Thompson
ef78ec6b30
fix: catch error when masking encrypted extra is none ( #21570 )
2022-10-02 19:49:01 -07:00
Antonio Rivero Martinez
b36bd3f083
fix(databases): GSheets and Clickhouse DBs are not allowed to upload files ( #21065 )
2022-09-26 10:08:11 -07:00
cccs-Dustin
2e564897f8
feat: Add dataset tagging to the back-end ( #20892 )
...
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com >
2022-09-23 11:01:17 +03:00
Geido
94ed4279c7
fix: Dataset timeout ( #21516 )
2022-09-19 11:15:54 -07:00
John Bodley
eac6fdcd29
chore(sqllab): Cleanup /tables/... endpoint ( #21284 )
2022-09-13 08:22:12 -07:00
Beto Dealmeida
34a79add04
feat: filter parameters from DB API ( #21248 )
2022-09-02 11:50:04 -07:00
Daniel Vaz Gaspar
3f2e894af3
fix: dataset name change and permission change ( #21161 )
...
* fix: dataset name change and permission change
2022-08-31 18:11:03 +01:00
Beto Dealmeida
8772e2cdb3
fix: improve get_db_engine_spec_for_backend ( #21171 )
...
* fix: improve get_db_engine_spec_for_backend
* Fix tests
* Fix docs
* fix lint
* fix fallback
* Fix engine validation
* Fix test
2022-08-29 11:42:42 -07:00
Beto Dealmeida
bb3871ddaf
feat: per-db add metrics ( #20990 )
...
* feat: per-db add metrics
* Add unit tests
2022-08-08 12:07:16 -07:00
Daniel Vaz Gaspar
bfd2a3d79f
fix: database permissions on update and delete (avoid orphaned perms) ( #20081 )
...
* fix: database permissions on update and delete (avoid orphaned perms)
* fix event transaction
* fix test
* fix lint
* update datasource access permissions
* add tests
* fix import
* fix tests
* update slice and dataset perms also
* fix lint
* fix tests
* fix lint
* fix lint
* add test for edge case, small refactor
* add test for edge case, small refactor
* improve code
* fix lint
2022-08-02 18:28:46 +01:00
John Bodley
8bfc9b76a6
fix: Use cache_manager.cache rather than cache_manager.data_cache for caching table metadata ( #20726 )
2022-07-25 08:54:59 -07:00
Cody Leff
84d4302628
fix(explore): Fix chart standalone URL for report/thumbnail generation ( #20673 )
...
* Update explore URLs.
* More URL fixes.
* Make frontend accept true/false query params case-insensitively.
* Fix URL mistake.
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
2022-07-19 13:53:55 -03:00
Beto Dealmeida
e60083b45b
chore: upgrade SQLAlchemy to 1.4 ( #19890 )
...
* chore: upgrade SQLAlchemy
* Convert integration test to unit test
* Fix SQLite
* Update method names/docstrings
* Skip test
* Fix SQLite
2022-07-18 15:21:38 -07:00
Elizabeth Thompson
f270e49c4b
chore: use exc_info to pass errors to log warnings ( #20252 )
...
* use exc_info to pass errors to log warnings
* Update superset/views/base.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
* Update superset/views/base.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net >
2022-06-03 11:41:24 -07:00
John Bodley
449d08b25e
fix: Refactor SQL username logic ( #19914 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2022-05-12 21:03:05 -07:00
Beto Dealmeida
1ebdaac487
fix: memoize primitives ( #19930 )
2022-05-02 14:50:56 -07:00
Beto Dealmeida
aff10a7fad
feat: simplify memoized_func ( #19905 )
2022-04-29 15:55:58 -07:00
Jesse Yang
231716cb50
perf: refactor SIP-68 db migrations with INSERT SELECT FROM ( #19421 )
2022-04-19 18:58:18 -07:00
Craig Rueda
f64d654de3
chore(database): Creating helper make_url_safe to wrap potential errors ( #19526 )
...
* Creating helper make_url_safe to wrap potential errors
* Fixing imports
* Fixing imports again
* Adding comment
* Linting
* Fixing test
* Fixing test again...
* Fixing import
2022-04-05 11:17:30 -07:00
Ville Brofeldt
a619cb4ea9
chore: upgrade black ( #19410 )
2022-03-29 20:03:09 +03:00
Beto Dealmeida
c7f9060a2f
feat: import external management columns ( #19315 )
...
* feat: import flags
* Add tests
2022-03-24 10:41:22 -07:00
cccs-Dustin
02ef9ca4cd
feat(sqllab): Add a configuration option to disable data preview ( #19104 )
2022-03-17 15:22:57 +02:00
Sujith Kumar S
7e51b200b4
fix(mssql): support top syntax for limiting queries ( #18746 )
...
* SQL-TOP Fix For Database Engines
MSSQL is not supporting LIMIT syntax in SQLs. For limiting the rows, MSSQL having a different keyword TOP. Added fixes for handling the TOP and LIMIT clauses based on the database engines.
* Teradata code for top clause handling removed from teradata.py
Teradata code for top clause handling removed from teradata.py file, since we added generic section in base engine for the same.
* Changes to handle CTE along with TOP in complex SQLs
Added changes to handle TOP command in CTEs, for DB Engines which are not supporting inline CTEs.
* Test cases for TOP unit testing in MSSQL
Added multiple unit test cases for MSSQL top command handling and also along with CTEs
* Corrected the select_keywords name key in basengine
Corrected the select_keywords name key in basengine
* Changes based on as per review.
made the required corrections based on code review to keep good code readability and code cleanliness.
* Review changes to correct lint and typo issues
Made the changes according to the review comments.
* fix linting errors
* fix teradata tests
* add coverage
* lint
* Code cleanliness
Moved the top/limit flag check from sql_lab to core.
* Changed for code cleanliness
Changes for keeping code cleanliness
* Corrected lint issue
Corrected lint issue.
* Code cleanliness
Code cleanliness
Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com >
2022-02-21 09:58:39 +02:00
Beto Dealmeida
1c0b141e2d
feat: allow assets to be managed externally ( #18093 )
...
* feat: allow assets to be managed externally
* Use server_default
2022-01-24 11:03:01 -08:00
Đặng Minh Dũng
0b67fe1beb
feat: Trino Authentications ( #17593 )
...
* feat: support Trino Authentications
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
* docs: Trino Authentications
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
2022-01-14 21:02:47 -08:00
Mikhail Kumachev
d2d4f8eb44
feat: Add support for Azure Data Explorer (Kusto) db engine spec ( #17898 )
...
* Add two Kusto engine specs: KQL and SQL. Some minor changes in core code to support Kusto engine specs.
* Remove redundant imports and logging.
* docs: Kusto sqlalchemy docs
* fix: Fix mypy and linting errors
* fix: Handle Black vs Pylint checks
* fix: isort problem
* refactor: Merge kustosql and kustokql in the single kusto module
* test: Add tests for Kusto db spec
* feat: Schema override does not require in KQL anymore
* Removed redundant imports.
* Added ".show" queries to readonly query determination.
* Fixed some bugs.
Added tests for convert_dttm.
* Fixed major sqlalchemy-kusto version.
* Fixed by isort.
Co-authored-by: Eugene Bikkinin <xnegxneg@gmail.com >
Co-authored-by: k.tomak <k.tomak@dodopizza.com >
Co-authored-by: Eugene Bikkinin <e.bikkinin@dodopizza.com >
2022-01-10 14:42:20 +02:00
Grace Guo
a01c4c95db
fix: [alert] should run alert query from report account ( #17499 )
...
* fix: [alert] should run alert query from report account
* add solution2: override username for get_df
* add integration test
2021-12-16 12:12:43 +00:00