Igor Khrol
80a6e25a98
fix: Avoid 500 if end users write bad SQL ( #26638 )
2024-01-18 06:48:50 +13:00
John Bodley
7af82ae87d
refactor: Ensure Celery leverages the Flask-SQLAlchemy session ( #26186 )
2024-01-17 17:06:22 +13:00
Igor Khrol
3daa038f5f
fix: Trino - handle table not found in SQLLab ( #26355 )
...
Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com >
2024-01-11 13:37:18 +13:00
Rob Moore
6359086779
fix: move driver import to method ( #26066 )
2023-11-22 10:49:01 -05:00
Rob Moore
8d73ab9955
feat(sqllab): TRINO_EXPAND_ROWS: expand columns from ROWs ( #25809 )
2023-11-20 10:59:10 -07:00
Beto Dealmeida
cdb18e04ff
fix: trino cursor ( #25897 )
2023-11-08 07:38:38 -05:00
Rob Moore
4e94fc4cff
fix(sqllab): reinstate "Force trino client async execution" ( #25680 )
2023-10-19 16:38:13 +03:00
Ville Brofeldt
e56e0de458
fix: revert fix(sqllab): Force trino client async execution ( #24859 ) ( #25541 )
2023-10-13 11:58:20 +00:00
Ville Brofeldt
0668d12e3b
chore(trino): remove unnecessary index checks ( #25211 )
2023-09-08 18:15:45 -07:00
Rob Moore
cfda30c81a
fix(sqllab): Force trino client async execution ( #24859 )
2023-09-06 14:20:26 -07:00
Sebastian Liebscher
e585db85b6
chore: use contextlib.surpress instead of passing on error ( #24896 )
...
Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com >
2023-08-29 10:09:01 -06:00
Beto Dealmeida
6f24a4e7a8
fix: calls to _get_sqla_engine ( #24953 )
2023-08-11 12:54:01 +02:00
John Bodley
a4d5d7c6b9
chore(pre-commit): Add pyupgrade and pycln hooks ( #24197 )
2023-06-01 12:01:10 -07:00
John Bodley
d583ca9ef5
chore: Embrace the walrus operator ( #24127 )
2023-05-19 00:37:13 -07:00
John Bodley
4ef9d25d58
chore: Refactor [Presto|Trino]EngineSpec._partition_query ( #23944 )
2023-05-17 09:11:55 -07:00
John Bodley
100ccb759c
chore(presto): Expose schema and indexes to _partition_query method ( #23674 )
...
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com >
2023-04-15 06:24:54 +12:00
John Bodley
e83f4e6f79
fix(trino): Disallow alias to source column ( #23324 )
2023-03-14 08:23:01 +13: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
Ville Brofeldt
b6d39d194c
feat(trino): support early cancellation of queries ( #22498 )
2022-12-24 06:31:46 +02:00
John Bodley
71982ee174
chore: Re-add inheritance of Presto macros for Trino et al. ( #22435 )
2022-12-20 08:27:20 +13:00
Michiel De Smet
90d79c78d2
fix(trino): Fix Trino timestamp conversion ( #21737 )
2022-12-14 10:49:14 -07:00
Beto Dealmeida
4496748cd9
chore: update Druid ( #22067 )
2022-11-08 15:03:58 -08:00
Ville Brofeldt
dc7399540b
chore: bubble up more db error messages ( #21982 )
2022-11-01 07:54:27 +02:00
Beto Dealmeida
34a79add04
feat: filter parameters from DB API ( #21248 )
2022-09-02 11:50:04 -07:00
Đặng Minh Dũng
ccb293a083
fix(Trino): create PrestoBaseEngineSpec base class to share common code between Trino and Presto ( #21066 )
...
* chore: create `PrestoBaseEngineSpec` class that share common functions between Presto and Trino
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
* feat(Trino): support CertificateAuthentication
* chore(Presto): move `get_function_names` to `PrestoBaseEngineSpec`
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
* chores(Presto): remove `is_readonly_query`
* feat(Trino): implement `extra_table_metadata`
* feat(Trino): specify `User-Agent`
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
* fix: pylint
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
* chores(Presto): move `PrestoBaseEngineSpec` to `presto.py`
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
* fix(Presto): typing annotations
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
2022-08-29 10:21:28 +03:00
Hugh A. Miles II
c61a507e14
fix: add back custom sql filtering with Query as source ( #21190 )
2022-08-26 19:12:21 -07:00
Ville Brofeldt
5113b01031
feat(trino): add query cancellation ( #21035 )
2022-08-12 07:48:29 +03:00
Jesse Yang
77db0651d8
feat(sql lab): display presto and trino tracking url ( #20799 )
2022-07-26 20:20:08 -07: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
Simon Thelin
8b7262fa90
fix(20428): Address-Presto/Trino-Poll-Issue-Refactor ( #20434 )
...
* fix(20428)-Address-Presto/Trino-Poll-Issue-Refacto
r
Update linter
* Update to only use BaseEngineSpec handle_cursor
* Fix CI
Co-authored-by: John Bodley <4567245+john-bodley@users.noreply.github.com >
2022-06-19 16:28:59 -07:00
John Bodley
b08e21efd9
[requirements] Resolve rebase conflicts ( #20152 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2022-06-03 15:27:35 -07:00
Ville Brofeldt
e2f11d3680
fix(presto,trino): use correct literal dttm separator ( #20123 )
...
* fix(presto,trino): use correct literal dttm separator
* remove redundant tests
2022-05-19 20:42:31 +03:00
Ville Brofeldt
99f1f9ec61
fix(sqla): replace custom dttm type with literal_column ( #19917 )
2022-05-03 07:19:36 +03: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
John Bodley
82a6811e7e
fix(presto/trino): Add TIME/TIMESTAMP WITH TIME ZONE ( #19263 )
...
Co-authored-by: John Bodley <john.bodley@airbnb.com >
2022-03-22 06:33:38 +13:00
Beto Dealmeida
40ab26d4f1
fix: unambiguous trino driver ( #18683 )
2022-02-11 17:40:20 -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
Đặng Minh Dũng
ebb34196f2
feat: trino support server-cert ( #16346 )
...
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
2021-11-26 13:28:15 +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
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
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
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
Đặng Minh Dũng
11e0f4cb2d
feat: TrinoEngineSpec.adjust_database_uri ( #14122 )
...
* feat: TrinoEngine implement adjust_database_uri
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
* test: TrinoEngine implement adjust_database_uri
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
2021-04-19 13:10:12 +03:00
Đặng Minh Dũng
2dbe92ba2f
feat: first step native support Trino ( #13105 )
...
* feat: add TrinoEngineSpec
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
* feat: add trino into extras_require
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
* test: add trino_tests.py
Signed-off-by: Đặng Minh Dũng <dungdm93@live.com >
2021-02-15 14:30:13 +02:00