def get_tables(self, database, table_names=[]):
    # Doesn't use database and only retrieves tables for database currently in use.
    cursor = self.connection.cursor()
    query = "SELECT name FROM sqlite_master WHERE type='table'"
    if table_names:
      clause = ' OR '.join([{'table': table} % "tablename LIKE '%%%(table)s%%'" for table in table_names])
      query += ' AND (%s)' % clause
    cursor.execute(query)
    self.connection.commit()
    return [row[0] for row in cursor.fetchall()]
dataset/ETHPy150Open cloudera/hue/desktop/libs/librdbms/src/librdbms/server/sqlite_lib.py/SQLiteClient.get_tables/swapped operands of `%`