mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +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
@@ -154,13 +154,12 @@ def test_select_star(mocker: MockerFixture) -> None:
|
||||
query.compile(dialect=BigQueryDialect(), compile_kwargs={"literal_binds": True})
|
||||
)
|
||||
|
||||
engine = mocker.MagicMock()
|
||||
engine.dialect = BigQueryDialect()
|
||||
dialect = BigQueryDialect()
|
||||
|
||||
sql = BigQueryEngineSpec.select_star(
|
||||
database=database,
|
||||
table=Table("my_table"),
|
||||
engine=engine,
|
||||
dialect=dialect,
|
||||
limit=100,
|
||||
show_cols=True,
|
||||
indent=True,
|
||||
|
||||
Reference in New Issue
Block a user