@@ -352,16 +352,17 @@ def _unwrap_optionality(column):
352352
353353
354354class _ResultSet (object ):
355- __slots__ = ("columns" , "rows" , "truncated" , "snapshot" )
355+ __slots__ = ("columns" , "rows" , "truncated" , "snapshot" , "index" )
356356
357- def __init__ (self , columns , rows , truncated , snapshot = None ):
357+ def __init__ (self , columns , rows , truncated , snapshot = None , index = None ):
358358 self .columns = columns
359359 self .rows = rows
360360 self .truncated = truncated
361361 self .snapshot = snapshot
362+ self .index = index
362363
363364 @classmethod
364- def from_message (cls , message , table_client_settings = None , snapshot = None ):
365+ def from_message (cls , message , table_client_settings = None , snapshot = None , index = None ):
365366 rows = []
366367 # prepare column parsers before actuall parsing
367368 column_parsers = []
@@ -384,7 +385,7 @@ def from_message(cls, message, table_client_settings=None, snapshot=None):
384385 column_parser , unwrapped_type = column_info
385386 row [column .name ] = column_parser (unwrapped_type , value , table_client_settings )
386387 rows .append (row )
387- return cls (message .columns , rows , message .truncated , snapshot )
388+ return cls (message .columns , rows , message .truncated , snapshot , index )
388389
389390 @classmethod
390391 def lazy_from_message (cls , message , table_client_settings = None , snapshot = None ):
0 commit comments