@@ -1788,7 +1788,15 @@ class RowIterator(HTTPIterator):
1788
1788
query (Optional[str]):
1789
1789
The query text used.
1790
1790
total_bytes_processed (Optional[int]):
1791
- total bytes processed from job statistics, if present.
1791
+ If representing query results, the total bytes processed by the associated query.
1792
+ slot_millis (Optional[int]):
1793
+ If representing query results, the number of slot ms billed for the associated query.
1794
+ created (Optional[datetime.datetime]):
1795
+ If representing query results, the creation time of the associated query.
1796
+ started (Optional[datetime.datetime]):
1797
+ If representing query results, the start time of the associated query.
1798
+ ended (Optional[datetime.datetime]):
1799
+ If representing query results, the end time of the associated query.
1792
1800
"""
1793
1801
1794
1802
def __init__ (
@@ -1813,6 +1821,9 @@ def __init__(
1813
1821
query : Optional [str ] = None ,
1814
1822
total_bytes_processed : Optional [int ] = None ,
1815
1823
slot_millis : Optional [int ] = None ,
1824
+ created : Optional [datetime .datetime ] = None ,
1825
+ started : Optional [datetime .datetime ] = None ,
1826
+ ended : Optional [datetime .datetime ] = None ,
1816
1827
):
1817
1828
super (RowIterator , self ).__init__ (
1818
1829
client ,
@@ -1843,6 +1854,9 @@ def __init__(
1843
1854
self ._query = query
1844
1855
self ._total_bytes_processed = total_bytes_processed
1845
1856
self ._slot_millis = slot_millis
1857
+ self ._job_created = created
1858
+ self ._job_started = started
1859
+ self ._job_ended = ended
1846
1860
1847
1861
@property
1848
1862
def _billing_project (self ) -> Optional [str ]:
@@ -1905,6 +1919,21 @@ def slot_millis(self) -> Optional[int]:
1905
1919
"""Number of slot ms the user is actually billed for."""
1906
1920
return self ._slot_millis
1907
1921
1922
+ @property
1923
+ def created (self ) -> Optional [datetime .datetime ]:
1924
+ """If representing query results, the creation time of the associated query."""
1925
+ return self ._job_created
1926
+
1927
+ @property
1928
+ def started (self ) -> Optional [datetime .datetime ]:
1929
+ """If representing query results, the start time of the associated query."""
1930
+ return self ._job_started
1931
+
1932
+ @property
1933
+ def ended (self ) -> Optional [datetime .datetime ]:
1934
+ """If representing query results, the end time of the associated query."""
1935
+ return self ._job_ended
1936
+
1908
1937
def _is_almost_completely_cached (self ):
1909
1938
"""Check if all results are completely cached.
1910
1939
0 commit comments