mirror of
https://github.com/apache/superset.git
synced 2026-07-27 17:12:36 +00:00
refactor(db): use Dialect instead of Engine in select_star to avoid SSH tunnels (#35540)
Co-authored-by: Claude <noreply@anthropic.com>
(cherry picked from commit e9b494163b)
This commit is contained in:
committed by
Joe Li
parent
221bbd6d41
commit
a1a4ca0238
@@ -252,7 +252,7 @@ def test_select_star(mocker: MockerFixture) -> None:
|
||||
Test the ``select_star`` method.
|
||||
"""
|
||||
database = mocker.MagicMock()
|
||||
engine = mocker.MagicMock()
|
||||
dialect = mocker.MagicMock()
|
||||
|
||||
def quote_table(table: Table, dialect: Dialect) -> str:
|
||||
return ".".join(
|
||||
@@ -264,7 +264,7 @@ def test_select_star(mocker: MockerFixture) -> None:
|
||||
spec.select_star(
|
||||
database=database,
|
||||
table=Table("my_table", "my_schema", "my_catalog"),
|
||||
engine=engine,
|
||||
dialect=dialect,
|
||||
limit=100,
|
||||
show_cols=False,
|
||||
indent=True,
|
||||
|
||||
Reference in New Issue
Block a user