Referring to the doc, calling QueryResults.fetch_data raises an exception since self.name is None:
ifself.nameisNone:
raiseValueError("Query not yet executed: call 'run()'")However, if QueryResults.run is called, an exception is also raised since self._job already exists:
ifself._jobisnotNone:
raiseValueError("Query job is already running.")
Referring to the doc, calling
QueryResults.fetch_dataraises an exception sinceself.nameisNone:However, if
QueryResults.runis called, an exception is also raised sinceself._jobalready exists: