1515
1616import benchmark .utils as utils
1717
18- import bigframes .session
18+ import bigframes .pandas
1919
2020PAGE_SIZE = utils .READ_GBQ_COLAB_PAGE_SIZE
2121
2222
23- def first_page (* , project_id , dataset_id , table_id , session : bigframes . session . Session ):
23+ def first_page (* , project_id , dataset_id , table_id ):
2424 # TODO(tswast): Support alternative query if table_id is a local DataFrame,
2525 # e.g. "{local_inline}" or "{local_large}"
26- df = session ._read_gbq_colab (
26+ df = bigframes . pandas ._read_gbq_colab (
2727 f"SELECT * FROM `{ project_id } `.{ dataset_id } .{ table_id } "
2828 )
2929
@@ -33,7 +33,7 @@ def first_page(*, project_id, dataset_id, table_id, session: bigframes.session.S
3333
3434
3535if __name__ == "__main__" :
36- config = utils .get_configuration (include_table_id = True )
36+ config = utils .get_configuration (include_table_id = True , start_session = False )
3737 current_path = pathlib .Path (__file__ ).absolute ()
3838
3939 utils .get_execution_time (
@@ -43,5 +43,4 @@ def first_page(*, project_id, dataset_id, table_id, session: bigframes.session.S
4343 project_id = config .project_id ,
4444 dataset_id = config .dataset_id ,
4545 table_id = config .table_id ,
46- session = config .session ,
4746 )
0 commit comments