Evan
408f5112e2
fix: cover MUTATE_AFTER_SPLIT branches, guard empty/mismatched mutated statements
...
Add missing coverage for the MUTATE_AFTER_SPLIT=True branch, add type
hints to satisfy dev-standard lint, and guard against a SQL_QUERY_MUTATOR
that strips all statements or changes statement count when mutating
before the split.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-17 17:42:17 -07:00
Evan
353250027c
fix(sqllab): apply SQL_QUERY_MUTATOR in SQL Lab when MUTATE_AFTER_SPLIT is set
...
SQL Lab passed the default is_split=False to mutate_sql_based_on_config for
every block, so SQL_QUERY_MUTATOR fired only when MUTATE_AFTER_SPLIT=False and
never when True. Pass is_split based on whether the engine runs statements as
one block, matching the canonical usage in db_engine_specs and the new
execution engine, and thread the same flag through execute_sql_with_cursor so
the async (Celery) path is consistent. Adds unit tests for both the guard
semantics and the executor contract, plus a config note.
Closes #30169
Supersedes #34111
Co-authored-by: Lucas Wolkersdorfer <lucas.wolkersdorfer@rise-world.com >
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-07-17 17:42:17 -07:00
Hans Yu
68ebc22e1e
refactor: replace Engine.execute() with Connection.execute() ( #41917 )
2026-07-13 09:40:33 -07:00
Mike Bridge
bdc610c572
fix(db): use a private engine for prequery connections to avoid listener race ( #41642 )
...
Co-authored-by: Mike Bridge <michael.bridge@ext.preset.io >
2026-07-02 16:30:09 -07:00
Shaitan
2da2db6c7c
feat(sql): schema-qualified table denylist + information_schema/lo_* defaults ( #41120 )
...
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-07-01 16:57:45 +01:00
Elizabeth Thompson
9d56b1721d
fix(models): use Series.iloc for positional access in post_process_df ( #41344 )
2026-06-23 11:22:22 -07:00
Vitor Avila
9e130e5927
fix(chart): preserve SQL_QUERY_MUTATOR line comments structure ( #41215 )
2026-06-19 15:07:24 -03:00
Durgaprasad M L
7e98410743
fix(theme): embedded method overrides dashboard level config ( #40777 )
...
Co-authored-by: Mehmet Salih Yavuz <salih.yavuz@proton.me >
2026-06-17 18:33:04 -07:00
Evan Rusackas
7f54b0b13d
test(database): regression test for sqla engine creation ( #27897 ) ( #40237 )
...
Co-authored-by: Claude <claude@anthropic.com >
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-29 21:47:49 -07:00
Mafi
b66c104fde
fix(sqllab): execute prequeries on streaming connection to fix PostgreSQL CSV export ( #40194 )
...
Co-authored-by: Matt Fitzgerald <matt.fitzgerald@preset.io >
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-18 09:43:06 -04:00
Beto Dealmeida
cb53745d43
feat: semantic layer extension ( #37815 )
2026-05-05 12:07:46 -04:00
Vitor Avila
cc972cad5a
fix: DB OAuth2 fixes ( #37350 )
2026-01-22 01:51:48 -03:00
Vitor Avila
d4723ef116
feat: Handle OAuth2 dance with TableSelector ( #37315 )
2026-01-21 19:49:18 -03:00
Michael S. Molina
28e3ba749e
feat: SQL execution API for Superset ( #36529 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-16 14:39:29 -03:00
Beto Dealmeida
c458f99dd4
chore: cleanup ssh tunnel ( #34388 )
2025-12-03 14:26:35 -05:00
Maxime Beauchemin
246181a546
feat(docker): Add pytest support to docker-compose-light.yml ( #34373 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-08-06 00:17:50 -04:00
Maxime Beauchemin
cb27d5fe8d
chore: proper current_app.config proxy usage ( #34345 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2025-07-31 19:27:42 -07:00
Vitor Avila
a56d7252c2
fix: Consider default catalog when getting tables and view lists ( #33916 )
2025-06-26 13:55:10 -03:00
Beto Dealmeida
a26e1d822a
chore: remove sqlparse ( #33564 )
2025-06-04 19:31:41 -04:00
Beto Dealmeida
8de58b9848
feat: use sqlglot to set limit ( #33473 )
2025-05-27 15:20:02 -04:00
Beto Dealmeida
c7c3b1b0e9
fix: move oauth2 capture to get_sqla_engine ( #32137 )
2025-02-04 18:24:05 -05:00
Vitor Avila
5fc11fb706
chore: Add more database-related tests (follow up to #31948 ) ( #32054 )
2025-01-31 08:36:09 -03:00
Evan Rusackas
855011360a
build(eslint): disabling wildcard imports with eslint ( #31761 )
2025-01-13 17:25:47 -07:00
Michael S. Molina
399b709aaf
refactor: Removes 5.0 approved legacy charts ( #31582 )
2025-01-09 16:45:05 -03:00
Beto Dealmeida
e4b3ecd372
feat: push predicates into virtual datasets ( #31486 )
2025-01-08 22:11:28 -05:00
Maxime Beauchemin
e51b95ffa8
chore: enforce more ruff rules ( #31447 )
...
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com >
2024-12-18 17:41:34 -08:00
Beto Dealmeida
68499a1199
feat: purge OAuth2 tokens when DB changes ( #31164 )
2024-11-26 15:57:01 -05:00
João Ferrão
305b6df6e3
feat(oauth2): add support for trino ( #30081 )
2024-11-04 11:54:47 -05:00
Jack
849d426e06
feat(oauth): adding necessary changes to support bigquery oauth ( #30674 )
2024-10-30 14:56:22 -05:00
Beto Dealmeida
710406aa76
feat: allow configuring an engine context manager ( #30266 )
2024-09-23 12:36:18 -04:00
Beto Dealmeida
0415ed34ce
feat: allow create/update OAuth2 DB ( #30071 )
2024-09-03 19:22:38 -04:00
Beto Dealmeida
b66c0f8d30
fix: schemas for upload API ( #29604 )
2024-07-16 15:53:25 -04:00
Beto Dealmeida
8e15d4807f
chore: s/MockFixture/MockerFixture/g ( #29160 )
2024-06-10 12:35:07 -04:00
Beto Dealmeida
5660f8e554
feat: OAuth2 client initial work ( #29109 )
2024-06-09 22:11:18 -04:00
Beto Dealmeida
0070097af8
feat: impersonate with email prefix ( #28770 )
2024-05-30 13:32:39 -04:00
Eyal Ezer
07b2449bd7
refactor: Unify all json.(loads|dumps) usage to utils.json ( #28702 )
...
Co-authored-by: Eyal Ezer <eyal.ezer@ge.com >
2024-05-28 14:17:41 -07:00
Beto Dealmeida
e90246fd1f
feat(SIP-95): permissions for catalogs ( #28317 )
2024-05-06 11:41:58 -04:00
Beto Dealmeida
6cf681df68
feat(SIP-95): new endpoint for table metadata ( #28122 )
2024-04-25 12:23:49 -04:00
Beto Dealmeida
99a1601aea
refactor: rename get_sqla_engine_with_context ( #28012 )
2024-04-12 13:31:05 -04:00
Beto Dealmeida
7675e0db10
fix: search_path in RDS ( #24739 )
2023-07-20 12:57:48 -07:00
John Bodley
2b364898a5
fix: Address regression introduced in #22853 ( #24121 )
2023-06-12 15:32:40 -07:00
John Bodley
a4d5d7c6b9
chore(pre-commit): Add pyupgrade and pycln hooks ( #24197 )
2023-06-01 12:01:10 -07:00
John Bodley
2f0caf8a0d
fix: Handle python_date_format in ExploreMixin ( #24068 )
2023-05-16 06:54:12 -07:00
Daniel Vaz Gaspar
79274eb5bc
fix: memoized decorator memory leak ( #23139 )
2023-02-27 15:59:11 +00: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