mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
refactor(db): use Dialect instead of Engine in select_star to avoid SSH tunnels (#35540)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
be404f9b84
commit
e9b494163b
@@ -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