@@ -259,28 +259,12 @@ def get_table_names(self, connection, schema=None, **kwargs):
259259 AND table_type = 'MANAGED';""" .format (
260260schema_str
261261 )
262+ # TODO: Add if scenario for None schema
262263data = cur .execute (sql_str ).fetchall ()
263264_tables = [i [TABLE_NAME ]for i in data ]
264265
265266return _tables
266267
267- # TODO: Commented out this until can be deleted after successful tests
268- # def get_table_names(self, connection, schema=None, **kwargs):
269- # TABLE_NAME = 1
270- # catalog = "`" + self.catalog + "`"
271- # schema = ("`" + schema + "`") or ("`" + self.schema + "`")
272- #
273- # with self.get_driver_connection(
274- # connection
275- # )._dbapi_connection.dbapi_connection.cursor() as cur:
276- # sql_str = "SHOW TABLES FROM {}".format(
277- # ".".join([catalog, schema])
278- # )
279- # data = cur.execute(sql_str).fetchall()
280- # _tables = [i[TABLE_NAME] for i in data]
281- #
282- # return _tables
283-
284268def get_view_names (self ,connection ,schema = None ,** kwargs ):
285269VIEW_NAME = 1
286270with self .get_driver_connection (