refactor(database): use SupersetResultSet on SqlaTable.get_df() (#10707)

* refactor(database): use SupersetResultSet on SqlaTable.get_df()

* lint

* change cypress test
This commit is contained in:
Ville Brofeldt
2020-08-28 21:12:03 +03:00
committed by GitHub
parent 3e374dab07
commit dd0bc472e3
10 changed files with 40 additions and 30 deletions

View File

@@ -53,7 +53,9 @@ class PostgresBaseEngineSpec(BaseEngineSpec):
}
@classmethod
def fetch_data(cls, cursor: Any, limit: int) -> List[Tuple[Any, ...]]:
def fetch_data(
cls, cursor: Any, limit: Optional[int] = None
) -> List[Tuple[Any, ...]]:
cursor.tzinfo_factory = FixedOffsetTimezone
if not cursor.description:
return []